File tree Expand file tree Collapse file tree 3 files changed +20
-13
lines changed
packages/lego-bricks/src/components/Modal Expand file tree Collapse file tree 3 files changed +20
-13
lines changed Original file line number Diff line number Diff line change 11import { Flex } from '@webkom/lego-bricks' ;
22import { QRCode } from 'react-qrcode-logo' ;
3+ import styles from './ProfileCard.module.css' ;
4+ import type Membership from '~/redux/models/Membership' ;
5+ import abakusBall from '~/assets/abakus-ball.png' ;
36import { CircularPicture } from '~/components/Image' ;
47import { PublicGroup } from '~/redux/models/Group' ;
58import { getPrimaryGroupWithLogo } from '~/utils/getPrimaryGroup' ;
6- import styles from './ProfileCard.module.css' ;
7- import type Membership from '~/redux/models/Membership' ;
89
910interface Props {
1011 firstName : string ;
@@ -52,16 +53,22 @@ export const ProfileCard = ({
5253 < p > BRUKERNAVN:</ p >
5354 < h3 > { username } </ h3 >
5455 </ div >
55- { primaryMembership && (
56- < div className = { styles . groupLogo } >
57- < CircularPicture
58- src = { primaryMembership . abakusGroup . logo ! }
59- alt = { primaryMembership . abakusGroup . name }
60- size = { 40 }
61- className = { styles . groupLogo }
62- />
63- </ div >
64- ) }
56+ < div className = { styles . groupLogo } >
57+ < CircularPicture
58+ src = {
59+ primaryMembership ?. abakusGroup . name
60+ ? primaryMembership . abakusGroup . logo !
61+ : abakusBall
62+ }
63+ alt = {
64+ primaryMembership ?. abakusGroup . name
65+ ? primaryMembership ?. abakusGroup . name
66+ : 'Abakus kule'
67+ }
68+ size = { 40 }
69+ className = { styles . groupLogo }
70+ > </ CircularPicture >
71+ </ div >
6572 </ Flex >
6673 </ Flex >
6774 ) ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ html[data-theme='dark'] .overlay {
4747.modal {
4848 position : fixed;
4949 width : 475px ;
50- max-width : 87 % ;
50+ max-width : 88 % ;
5151 /**
5252 * max-height must be smaller than the height of .overlay
5353 * This is because we use align-items: center to vertically center,
You can’t perform that action at this time.
0 commit comments