hide ability to choose function when not connected or not approved
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
ad55c04525
commit
203d483a92
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ghost-dao-interface",
|
"name": "ghost-dao-interface",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.5.15",
|
"version": "0.5.16",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@ -157,6 +157,7 @@ const NewProposal = ({ config, address, connect, chainId }) => {
|
|||||||
connect={connect}
|
connect={connect}
|
||||||
isVertical
|
isVertical
|
||||||
>
|
>
|
||||||
|
<Box display="flex" flexDirection="column" alignItems="center">
|
||||||
<PrimaryButton
|
<PrimaryButton
|
||||||
disabled={
|
disabled={
|
||||||
proposalFunctions.length === 0 ||
|
proposalFunctions.length === 0 ||
|
||||||
@ -168,8 +169,6 @@ const NewProposal = ({ config, address, connect, chainId }) => {
|
|||||||
>
|
>
|
||||||
{isPending ? "Submitting..." : "Submit Proposal"}
|
{isPending ? "Submitting..." : "Submit Proposal"}
|
||||||
</PrimaryButton>
|
</PrimaryButton>
|
||||||
</TokenAllowanceGuard>
|
|
||||||
</Box>
|
|
||||||
<TertiaryButton
|
<TertiaryButton
|
||||||
sx={{ maxWidth: isSemiSmallScreen ? "100%" : "350px" }}
|
sx={{ maxWidth: isSemiSmallScreen ? "100%" : "350px" }}
|
||||||
fullWidth
|
fullWidth
|
||||||
@ -179,6 +178,9 @@ const NewProposal = ({ config, address, connect, chainId }) => {
|
|||||||
Add New
|
Add New
|
||||||
</TertiaryButton>
|
</TertiaryButton>
|
||||||
</Box>
|
</Box>
|
||||||
|
</TokenAllowanceGuard>
|
||||||
|
</Box>
|
||||||
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
</Paper>
|
</Paper>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user