Skip to content

Commit c51446b

Browse files
committed
Revert "feat: refactor FooterLogos component to accept dynamic logo configuration and move the footer logo asset to public"
This reverts commit 8203f46.
1 parent 66a4423 commit c51446b

File tree

4 files changed

+10
-32
lines changed

4 files changed

+10
-32
lines changed

apps/frontend/src/routes/__root.tsx

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -102,21 +102,7 @@ function Root() {
102102

103103
<AppShell.Footer>
104104
<Group justify="space-between">
105-
<FooterLogos
106-
logos={[
107-
{
108-
src: "../public/uzh-logo.svg",
109-
href: "https://uzh.ch",
110-
alt: "UZH Logo",
111-
},
112-
{
113-
src: "../public/weltentdecker-logo.png",
114-
href: "https://www.psychologie.uzh.ch/de/bereiche/dev/devpsy/Weltentdecker.html",
115-
alt: "Weltentdecker Logo",
116-
height: 50,
117-
},
118-
]}
119-
/>
105+
<FooterLogos />
120106
Version {version}
121107
</Group>
122108
</AppShell.Footer>
File renamed without changes.
Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
11
import { Group } from "@mantine/core";
2+
import UZHLogo from "../assets/uzh-logo.svg?react";
3+
import WeltentdeckerLogo from "../assets/weltentdecker-logo.png";
24

3-
type LogoItem = {
4-
src: string;
5-
href: string;
6-
alt: string;
7-
height?: number;
8-
};
9-
10-
type FooterLogosProps = {
11-
logos: LogoItem[];
12-
};
13-
14-
export function FooterLogos({ logos }: FooterLogosProps) {
5+
export function FooterLogos() {
156
return (
167
<Group>
17-
{logos.map((logo, index) => (
18-
<a key={index} href={logo.href}>
19-
<img src={logo.src} alt={logo.alt} height={logo.height || 50} />
20-
</a>
21-
))}
8+
<a href="https://uzh.ch">
9+
<UZHLogo />
10+
</a>
11+
<a href="https://www.psychologie.uzh.ch/de/bereiche/dev/devpsy/Weltentdecker.html">
12+
<img src={WeltentdeckerLogo} height={50} />
13+
</a>
2214
</Group>
2315
);
2416
}

0 commit comments

Comments
 (0)