-
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.
feat: split new committe on-chain details into tabs
- Loading branch information
1 parent
2d816f0
commit 193455c
Showing
5 changed files
with
49 additions
and
28 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 |
---|---|---|
|
@@ -20,7 +20,7 @@ changes. | |
|
||
### Changed | ||
|
||
- | ||
- Split New committee on-chain details into tabs | ||
|
||
### Removed | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
...ol/frontend/src/components/molecules/GovernanceActionNewConstitutionDetailsTabContent.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,30 @@ | ||
import { Box } from "@mui/material"; | ||
|
||
import { NewConstitutionAnchor, ProposalData } from "@/models"; | ||
import { useScreenDimension } from "@/hooks"; | ||
|
||
import { GovernanceActionCardElement } from "./GovernanceActionCardElement"; | ||
|
||
export const GovernanceActionNewConstitutionDetailsTabContent = ({ | ||
details, | ||
}: Pick<ProposalData, "details">) => { | ||
const { screenWidth } = useScreenDimension(); | ||
return ( | ||
<Box> | ||
<GovernanceActionCardElement | ||
isCopyButton | ||
label="Data Hash" | ||
text={(details?.anchor as NewConstitutionAnchor)?.dataHash as string} | ||
dataTestId="new-constitution-data-hash" | ||
textVariant={screenWidth > 1600 ? "longText" : "oneLine"} | ||
/> | ||
<GovernanceActionCardElement | ||
isCopyButton | ||
label="URL" | ||
text={(details?.anchor as NewConstitutionAnchor)?.url as string} | ||
dataTestId="new-constitution-url" | ||
textVariant={screenWidth > 1600 ? "longText" : "oneLine"} | ||
/> | ||
</Box> | ||
); | ||
}; |
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