style: validator success page
This commit is contained in:
parent
565d1887e0
commit
b39afe386f
@ -1,26 +1,21 @@
|
||||
import React from 'react';
|
||||
import { useLocation } from 'react-router-dom';
|
||||
import React from "react";
|
||||
import { useLocation } from "react-router-dom";
|
||||
|
||||
import { Box, Link, Typography } from '@mui/material';
|
||||
import { Link, Typography } from "@mui/material";
|
||||
import { Layout } from "../layout/Layout";
|
||||
import { CodeBlock } from "../components/CodeBlock";
|
||||
|
||||
const ValidatorSuccess = () => {
|
||||
const location = useLocation();
|
||||
const { validatorAddress } = location.state as {
|
||||
validatorAddress?: string
|
||||
validatorAddress?: string;
|
||||
};
|
||||
|
||||
return (
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
marginTop: 6,
|
||||
gap: 1,
|
||||
}}
|
||||
>
|
||||
<Typography variant="h5">Validator created successfully</Typography>
|
||||
<Layout title="Validator created successfully">
|
||||
<Typography sx={{ marginTop: 3 }}>
|
||||
You can view your validator details using the following command (Refer
|
||||
You can view your validator details using the following command
|
||||
(Refer
|
||||
<Link
|
||||
href="https://git.vdb.to/cerc-io/testnet-laconicd-stack/src/branch/main/testnet-onboarding-validator.md#join-as-testnet-validator"
|
||||
target="_blank"
|
||||
@ -30,12 +25,10 @@ const ValidatorSuccess = () => {
|
||||
</Link>
|
||||
)
|
||||
</Typography>
|
||||
<Box sx={{ backgroundColor: "lightgray", padding: 2, wordWrap: "break-word", marginTop: 2, fontSize: 14}}>
|
||||
<pre style={{ whiteSpace: "pre-wrap", margin: 0 }}>
|
||||
<CodeBlock>
|
||||
{`laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd query staking validators --output json" | jq '.validators[] | select(.operator_address == "${validatorAddress}")'`}
|
||||
</pre>
|
||||
</Box>
|
||||
</Box>
|
||||
</CodeBlock>
|
||||
</Layout>
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user