Skip to content

Commit e516e94

Browse files
committed
feat: remove logo URL configuration and update Brand component to use static logo
1 parent 8fb93d8 commit e516e94

File tree

6 files changed

+6
-9
lines changed

6 files changed

+6
-9
lines changed

apps/frontend/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
apiUrl: '$API_URL',
2626
themeColor: '$THEME_COLOR',
2727
title: '$TITLE',
28-
logoUrl: '$LOGO_URL',
2928
};
3029
</script>
3130
</head>

apps/frontend/src/configuration.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export const C = {
1010
apiUrl: getEnv("apiUrl") || import.meta.env.VITE_API_URL,
1111
themeColor: getEnv("themeColor") || import.meta.env.VITE_THEME_COLOR,
1212
title: getEnv("title") || import.meta.env.VITE_TITLE,
13-
logoUrl: getEnv("logoUrl") || import.meta.env.VITE_LOGO_URL,
1413
},
1514
ui: {
1615
maxDropdownHeight: 800,

apps/frontend/src/routes/__root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function Root() {
6767
<AppShell.Header>
6868
<Group justify="space-between">
6969
<Link to="/">
70-
<Brand title={C.env.title} logoUrl={C.env.logoUrl} />
70+
<Brand title={C.env.title} />
7171
</Link>
7272
{sessionStore.email && (
7373
<Group>

apps/frontend/src/types.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ declare global {
2727
apiUrl?: string;
2828
themeColor?: string;
2929
title?: string;
30-
logoUrl?: string;
3130
};
3231
}
3332
}

examples/public/docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ services:
7878
THEME_COLOR: uzhGold
7979
TITLE: LEMON
8080
volumes:
81-
- LOGO_URL: ../public/logo.svg
81+
- logo.svg:/usr/share/nginx/logo.svg
8282
labels:
8383
- "com.centurylinklabs.watchtower.enable=true"
8484
- "traefik.enable=true"

libs/ui/src/components/Brand.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { Group, Stack, Title, Image } from "@mantine/core";
1+
import { Group, Stack, Title } from "@mantine/core";
2+
import Logo from "../../../../apps/frontend/public/logo.svg?react";
23

34
type Props = {
45
title: string;
5-
logoUrl: string;
66
};
77

8-
export function Brand({ title, logoUrl }: Props) {
8+
export function Brand({ title }: Props) {
99
return (
1010
<Group className="quassel-Brand" gap="md">
11-
<Image src={logoUrl} className="quassel-Logo" />
11+
<Logo className="quassel-Logo" />
1212
<Stack gap={0}>
1313
<Title order={2} c="black">
1414
{title}

0 commit comments

Comments
 (0)