-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Legacy Node (Frontend) (#4826)
* refactor bonding requests * use migrate node modal * disable node settings for legacy nodes * refine bonded node types * start migration and bonding work * update types and requests * clean up bonding context * move old forms to legacy directory * create nymnode bonding flow --------- Co-authored-by: fmtabbara <fmtabbara@hotmail.co.uk>
- Loading branch information
Showing
71 changed files
with
2,198 additions
and
1,221 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import React from 'react'; | ||
import { Box, Button, Stack, Tooltip, Typography } from '@mui/material'; | ||
import { NymCard } from 'src/components'; | ||
|
||
export const BondUpdateCard = ({ setSuccesfullUpdate }: { setSuccesfullUpdate: (staus: boolean) => void }) => ( | ||
<Stack gap={2}> | ||
<NymCard | ||
borderless | ||
title={ | ||
<Typography variant="h5" fontWeight={600} marginBottom={3}> | ||
Upgrade your node! | ||
</Typography> | ||
} | ||
subheader={ | ||
<Stack gap={1}> | ||
<Typography variant="subtitle2" fontWeight={600} sx={{ color: 'nym.text.dark' }}> | ||
It seems like your node is running outdated binaries. | ||
</Typography> | ||
<Typography variant="body2">Update to the latest stable Nym node binary now*</Typography> | ||
<Typography variant="body2">The update takes less than a minute!</Typography> | ||
<Typography variant="caption"> | ||
*Without updating, legacy node settings can be changed in the Nym CLI. | ||
</Typography> | ||
</Stack> | ||
} | ||
Action={ | ||
<Box display="flex" flexDirection="column" alignItems="flex-end" justifyContent="space-between" height={70}> | ||
<Tooltip title="Update to the latest stable Nym node binary now"> | ||
<Box> | ||
<Button | ||
variant="contained" | ||
color="primary" | ||
// TODO wallet-smoosh: update when we have the actual endpoint | ||
onClick={() => setSuccesfullUpdate(true)} | ||
> | ||
Upgrade to Nym Node | ||
</Button> | ||
</Box> | ||
</Tooltip> | ||
</Box> | ||
} | ||
/> | ||
</Stack> | ||
); |
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.