Skip to content

Commit

Permalink
Fix path to tournament logos (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
evroon authored Feb 28, 2024
1 parent e3fa10e commit 2d088e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/dashboard/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function TournamentLogo({ tournamentDataFull }: { tournamentDataFull: Tou
<Image
radius="lg"
mt="1rem"
src={`${getBaseApiUrl()}/static/${tournamentDataFull.logo_path}`}
src={`${getBaseApiUrl()}/static/tournament-logos/${tournamentDataFull.logo_path}`}
style={{ maxWidth: '400px' }}
/>
</>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/modals/tournament_modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import SaveButton from '../buttons/save';

export function TournamentLogo({ tournament }: { tournament: Tournament | null }) {
if (tournament == null || tournament.logo_path == null) return null;
return <Image radius="md" src={`${getBaseApiUrl()}/static/${tournament.logo_path}`} />;
return <Image radius="md" src={`${getBaseApiUrl()}/static/tournament-logos/${tournament.logo_path}`} />;
}

function GeneralTournamentForm({
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/tournaments/[id]/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import TournamentLayout from '../_tournament_layout';

export function TournamentLogo({ tournament }: { tournament: Tournament | null }) {
if (tournament == null || tournament.logo_path == null) return null;
return <Image radius="md" src={`${getBaseApiUrl()}/static/${tournament.logo_path}`} />;
return <Image radius="md" src={`${getBaseApiUrl()}/static/tournament-logos/${tournament.logo_path}`} />;
}

function GeneralTournamentForm({
Expand Down

0 comments on commit 2d088e9

Please sign in to comment.