@@ -3,7 +3,6 @@ import { getTranslation } from "@/locales";
3
3
import styles from "@/styles/Card.module.scss" ;
4
4
import {
5
5
AssociationMembership ,
6
- Commission ,
7
6
CommissionMembership ,
8
7
Member ,
9
8
} from "@/types/aliases" ;
@@ -16,15 +15,14 @@ export default function Card(
16
15
member : Member ;
17
16
membership : AssociationMembership | CommissionMembership ;
18
17
}
19
- | { commission : Commission }
20
18
| {
21
19
img : any ;
22
20
title : string ;
23
21
description : string ;
24
22
link ?: string ;
25
23
linkTarget ?: "_blank" ;
26
24
}
27
- ) & { size : "small" | "large" ; background ?: boolean }
25
+ ) & { background ?: boolean }
28
26
) {
29
27
const router = useRouter ( ) ;
30
28
@@ -40,14 +38,6 @@ export default function Card(
40
38
description = getTranslation ( props . membership , router . locale ) . title ;
41
39
link = props . member . link ;
42
40
linkTarget = "_blank" ;
43
- } else if ( "commission" in props ) {
44
- img = props . commission . logo ;
45
- title = props . commission . name ;
46
- description = getTranslation (
47
- props . commission ,
48
- router . locale
49
- ) . small_description ;
50
- link = `/commissions/${ props . commission . slug } ` ;
51
41
} else {
52
42
img = props . img ;
53
43
title = props . title ;
@@ -58,9 +48,7 @@ export default function Card(
58
48
59
49
const component = (
60
50
< div
61
- className = { `${ styles . card } ${ styles [ props . size ] } ${
62
- props . background ? styles . background : ""
63
- } `}
51
+ className = { `${ styles . card } ${ props . background ? styles . background : "" } ` }
64
52
>
65
53
< div className = { styles . imageDiv } >
66
54
< DirectusImage
0 commit comments