This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature/COR-1684-fix-null-value-for-archived-reproduction-data (#4819)
* fix: solve non showing data point * fix: update readanbility * Revert "fix: update readanbility" This reverts commit ad0bda6. * fix: update readability * fix: inline CSS --------- Co-authored-by: VWSCoronaDashboard18 <[email protected]>
- Loading branch information
1 parent
5e9902c
commit 78ffc2c
Showing
6 changed files
with
48 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Tile } from '~/components/tile'; | ||
import { space } from '~/style/theme'; | ||
import { Box } from './base/box'; | ||
|
||
interface IllustrationProps { | ||
image: string; | ||
alt: string; | ||
description: string; | ||
hasNoBorder?: boolean; | ||
hasNoPaddingBottom?: boolean; | ||
} | ||
|
||
/** | ||
* A image KPI tile which composes an image into the tile itself. | ||
*/ | ||
export function IllustrationTile({ image, alt, description, hasNoBorder, hasNoPaddingBottom }: IllustrationProps) { | ||
return ( | ||
<Tile hasNoBorder={hasNoBorder} hasNoPaddingBottom={hasNoPaddingBottom}> | ||
<Box marginBottom={space[3]}> | ||
<img width="315px" height="100px" loading="lazy" src={image} alt={alt} /> | ||
</Box> | ||
<p>{description}</p> | ||
</Tile> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 0 additions & 44 deletions
44
packages/app/src/components/kpi-with-illustration-tile.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters