Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix path to tournament logos #571

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading