File tree Expand file tree Collapse file tree 4 files changed +10
-32
lines changed Expand file tree Collapse file tree 4 files changed +10
-32
lines changed Original file line number Diff line number Diff line change @@ -102,21 +102,7 @@ function Root() {
102
102
103
103
< AppShell . Footer >
104
104
< 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 />
120
106
Version { version }
121
107
</ Group >
122
108
</ AppShell . Footer >
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
import { Group } from "@mantine/core" ;
2
+ import UZHLogo from "../assets/uzh-logo.svg?react" ;
3
+ import WeltentdeckerLogo from "../assets/weltentdecker-logo.png" ;
2
4
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 ( ) {
15
6
return (
16
7
< 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 >
22
14
</ Group >
23
15
) ;
24
16
}
You can’t perform that action at this time.
0 commit comments