Skip to content

Commit

Permalink
fix: use unified design on announcement and stripcard
Browse files Browse the repository at this point in the history
  • Loading branch information
sverben committed Jul 2, 2024
1 parent fab5bc1 commit 9364b6b
Showing 1 changed file with 9 additions and 23 deletions.
32 changes: 9 additions & 23 deletions src/screens/feed/slot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,32 +67,18 @@ export default function SlotScreen({ route, navigation }: Props) {
<View style={styles.info}>
{authState.authenticated === Authed.AUTHENTICATED &&
authState.user.stripcard && (
<>
<View style={styles.header}>
<Icon size={22} source={"clipboard-list"} />
<Text variant={"titleMedium"}>Strippenkaart</Text>
</View>
<Card>
<Card.Content>
<Text variant={"titleSmall"}>
Je strippenkaart is {authState.user.stripcard.used} van de{" "}
{authState.user.stripcard.count} keer gebruikt.
</Text>
</Card.Content>
</Card>
</>
<Area title={"Strippenkaart"} icon={"clipboard-list"}>
<Text variant={"titleSmall"}>
Je strippenkaart is {authState.user.stripcard.used} van de{" "}
{authState.user.stripcard.count} keer gebruikt.
</Text>
</Area>
)}
{slot.announcement && (
<>
<View style={styles.header}>
<Icon size={22} source={"bullhorn"} />
<Text variant={"titleMedium"}>Aankondiging</Text>
</View>
<Card>
<Card.Content>
<Text variant={"titleSmall"}>{slot.announcement}</Text>
</Card.Content>
</Card>
<Area title={"Aankondiging"} icon={"bullhorn"}>
<Text variant={"titleSmall"}>{slot.announcement}</Text>
</Area>
</>
)}
<Area title={"Beschikbaarheid"} icon={"account"}>
Expand Down

0 comments on commit 9364b6b

Please sign in to comment.