-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d31e7d4
commit c2f11f6
Showing
38 changed files
with
875 additions
and
140 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,49 @@ | ||
import { CSSProperties, FC } from "react"; | ||
import { useTranslation } from "react-i18next"; | ||
|
||
import Box from "@mui/material/Box"; | ||
import Typography from "@mui/material/Typography"; | ||
import useTheme from "@mui/material/styles/useTheme"; | ||
|
||
import IPalette from "theme/IPalette.interface"; | ||
|
||
interface StatisticCardProps { | ||
title: string; | ||
width: number; | ||
children: JSX.Element; | ||
styles?: CSSProperties; | ||
} | ||
|
||
const StatisticCard: FC<StatisticCardProps> = ({ | ||
title, | ||
width, | ||
children, | ||
styles, | ||
}) => { | ||
const { t } = useTranslation(); | ||
const { palette }: IPalette = useTheme(); | ||
|
||
return ( | ||
<Box | ||
sx={{ | ||
...styles, | ||
display: "flex", | ||
flexDirection: "column", | ||
gap: "20px", | ||
p: "15px 20px", | ||
width: `${width}px`, | ||
height: `fit-content`, | ||
borderRadius: 1, | ||
bgcolor: palette.grey.card, | ||
border: `1px solid ${palette.grey.active}`, | ||
}} | ||
> | ||
<Typography sx={{ fontSize: 20 }}> | ||
{t(`statistic.${title}.heading`)} | ||
</Typography> | ||
{children} | ||
</Box> | ||
); | ||
}; | ||
|
||
export { StatisticCard }; |
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 @@ | ||
export { StatisticCard } from "./StatisticCard"; |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
const scopes = { | ||
REPORTS: "Reports", | ||
QA: "Q/A", | ||
SUGGESTIONS: "Suggestions", | ||
SUGGESTION: "Suggestion", | ||
}; | ||
|
||
export { scopes }; |
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
Oops, something went wrong.