Skip to content

Commit

Permalink
Fixes for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
petrvecera committed Feb 9, 2025
1 parent f3e855d commit c6c9357
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ jobs:
ignore_empty: true
ignore_missing: true

- name: "Deploy to AWS - prod"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_DEFAULT_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_DEFAULT_ACCOUNT_ID }}
run: |
npx sst deploy --stage production
- name: Deploy to Netlify hosting
env:
NETLIFY_AUTH_TOKEN: ${{secrets.NETLIFY_AUTH_TOKEN}}
Expand Down
1 change: 1 addition & 0 deletions components/Header/components/search-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const SearchButton: React.FC<{ redirectOnClick?: boolean; close?: () => v
return (
<>
<TextInput
style={{ width: 150 }}
leftSection={<IconSearch />}
placeholder="Search players"
radius={"md"}
Expand Down
8 changes: 4 additions & 4 deletions screens/stats/achievements/achievement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface AchievementProps {
description: string;
icon: string;
icongray: string;
globalPercent: number;
globalPercent: string;
};
}

Expand All @@ -35,15 +35,15 @@ const Achievement = ({ achievement }: AchievementProps) => {
</Text>
<Text size={isMobile ? "xs" : "sm"}>{achievement.description}</Text>
<Progress.Root size="xl" radius={"xs"}>
<Progress.Section value={achievement.globalPercent}>
<Progress.Label>{`${achievement.globalPercent.toFixed(1)}%`}</Progress.Label>
<Progress.Section value={parseFloat(achievement.globalPercent)}>
<Progress.Label>{`${parseFloat(achievement.globalPercent).toFixed(1)}%`}</Progress.Label>
</Progress.Section>
</Progress.Root>
</div>
</div>
<div style={{ flexShrink: 0 }}>
<Text fw={"bold"} size={"lg"}>
{achievement.globalPercent.toFixed(1)}%
{parseFloat(achievement.globalPercent).toFixed(1)}%
</Text>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/coh3/coh3-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export interface GlobalAchievementsData {
description: string;
icon: string;
icongray: string;
globalPercent: number;
globalPercent: string;
}
>;
unixTimeStamp: number;
Expand Down

0 comments on commit c6c9357

Please sign in to comment.