-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #618 from IntersectMBO/feat/578-update-all-cards-t…
…ext-and-buttons feat/578-update-all-cards-text-and-buttons
- Loading branch information
Showing
17 changed files
with
353 additions
and
185 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 |
---|---|---|
|
@@ -18,6 +18,9 @@ | |
overscroll-behavior-y: none; | ||
padding: 0; | ||
} | ||
#root { | ||
white-space: pre-line; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
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
55 changes: 55 additions & 0 deletions
55
govtool/frontend/src/components/molecules/SoleVoterAction.tsx
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,55 @@ | ||
import { Box } from "@mui/material"; | ||
import ArrowForwardIosIcon from "@mui/icons-material/ArrowForwardIos"; | ||
|
||
import { Typography } from "@atoms"; | ||
import { gray } from "@consts"; | ||
import { useTranslation } from "@hooks"; | ||
|
||
import { Card } from "./Card"; | ||
import { SoleVoterActionProps } from "./types"; | ||
|
||
export const SoleVoterAction = ({ | ||
dRepId, | ||
onClickArrow, | ||
sx, | ||
}: SoleVoterActionProps) => { | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<Card | ||
border | ||
elevation={0} | ||
sx={{ | ||
alignItems: "center", | ||
backgroundColor: (theme) => theme.palette.neutralWhite, | ||
borderColor: gray.c100, | ||
display: "flex", | ||
justifyContent: "space-between", | ||
px: 1.5, | ||
py: 1, | ||
...sx, | ||
}} | ||
> | ||
<Box sx={{ width: "90%" }}> | ||
<Typography fontWeight={600} variant="body2"> | ||
{t("dashboard.cards.drepName")} | ||
</Typography> | ||
<Typography | ||
sx={{ | ||
mt: 0.5, | ||
overflow: "hidden", | ||
textOverflow: "ellipsis", | ||
}} | ||
variant="body2" | ||
> | ||
{dRepId} | ||
</Typography> | ||
</Box> | ||
<ArrowForwardIosIcon | ||
color="primary" | ||
onClick={onClickArrow} | ||
sx={{ cursor: "pointer", height: 16, width: 24 }} | ||
/> | ||
</Card> | ||
); | ||
}; |
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
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.