Skip to content
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.

Commit

Permalink
Added dead state of warTeam
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuboczoch committed Oct 7, 2021
1 parent b95e512 commit f7f80b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions @types/generated/contentful.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ export interface IWarTeamFields {

/** Banner */
banner?: Asset | undefined

/** isDead */
isDead: boolean
}

export interface IWarTeam extends Entry<IWarTeamFields> {
Expand Down
3 changes: 3 additions & 0 deletions src/components/elements/WarTeam/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const WarTeam = (props: IWarTeam) => (
padding: 0;
}
`}
style={props.fields.isDead && { opacity: '0.5' }}
>
<div
className={css`
Expand All @@ -37,6 +38,7 @@ const WarTeam = (props: IWarTeam) => (
font-size: 20px;
display: flex;
align-items: center;
word-break: break-all;
&::after {
position: absolute;
Expand All @@ -49,6 +51,7 @@ const WarTeam = (props: IWarTeam) => (
opacity: 0.25;
}
`}
style={props.fields.isDead && { textDecoration: 'line-through' }}
>
{props.fields.title}
</span>
Expand Down

0 comments on commit f7f80b8

Please sign in to comment.