Skip to content
This repository has been archived by the owner on Oct 15, 2023. It is now read-only.

Commit

Permalink
style: optimized recover style
Browse files Browse the repository at this point in the history
  • Loading branch information
exrobbie committed Sep 8, 2023
1 parent 8128a02 commit de8a72b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/ChainSelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function ChainSelect() {
</Flex>
</MenuButton>

<MenuList>
<MenuList w="266px">
{chainList.map((item: any, idx: number) => {
return (
<React.Fragment key={idx}>
Expand Down
1 change: 1 addition & 0 deletions src/components/web/Form/FormInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export default function FormInput({
height="3em"
readOnly={readOnly}
autoFocus={autoFocus}
spellCheck={false}
{..._inputStyles}
/>
{visible !== undefined && isPassword && (
Expand Down
2 changes: 1 addition & 1 deletion src/context/WalletContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const WalletContextProvider = ({ children }: any) => {
}

// IMPORTANT TODO, Judge first available chain and set as default
if (chainRecoverStatus.filter((item: any) => item.chainId === selectedChainItem.chainIdHex).length === 0) {
if (chainRecoverStatus.filter((item: any) => item.chainId === selectedChainItem.chainIdHex && item.status === 1).length === 0) {
setSelectedChainId(chainRecoverStatus.filter((item: any) => item.status)[0].chainId);
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/pages/v1/Launch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default function Launch() {
fontWeight="700"
lineHeight="normal"
>
Begin your Web3 journey by creating a smart contract wallet with us.
Begin your Ethereum journey by creating a smart contract wallet with us.
</Box>
</Box>
<Box
Expand Down
2 changes: 1 addition & 1 deletion src/pages/v1/Recover/EnterWalletAddress/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const EnterWalletAddress = ({ onSubmit }: IRecoverStarter) => {
};

return (
<Box width="480px" display="flex" flexDirection="column" alignItems="center" justifyContent="center" paddingBottom="20px">
<Box width="432px" display="flex" flexDirection="column" alignItems="center" justifyContent="center" paddingBottom="20px">
<Heading1>
Wallet recovery
</Heading1>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/v1/Recover/SignatureRequest/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ const GuardiansChecking = () => {
<Heading1 _styles={{ marginBottom: "24px" }}>Recovery in progress</Heading1>
<Box marginBottom="0.75em" width="100%" display="flex" flexDirection="column" alignItems="center" justifyContent="center" gap="0.75em">
<Box display="flex" width="100%" background="white" height="3em" borderRadius="1em" alignItems="center" justifyContent="space-between" padding="0 1em">
<Box fontSize="14px" fontWeight="bold">Ethereum Wallet(s)</Box>
<Box fontSize="14px" fontWeight="bold">Ethereum Wallet</Box>
{recoverStatus >= 3 && <Box fontSize="14px" fontWeight="bold" color="#1CD20F" display="flex" alignItems="center" justifyContent="center">
{getKeystoreStatus(recoverStatus)}
<Text marginLeft="4px"><CheckedIcon /></Text>
Expand Down

0 comments on commit de8a72b

Please sign in to comment.