Skip to content

Commit

Permalink
Refactor NoFundsCTAFlex styles and add link styles in MainAddFunds.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
truemiller committed Apr 26, 2024
1 parent f138a17 commit 7404999
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 47 deletions.
19 changes: 0 additions & 19 deletions frontend/components/Layout/Header.tsx

This file was deleted.

8 changes: 5 additions & 3 deletions frontend/components/Main/MainAddFunds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ export const MainAddFunds = () => {
</Flex>

<NoFundsCTAFlex vertical gap={10}>
<strong style={{ fontSize: 'medium', lineHeight: '0.9em' }}>
No OLAS or XDAI on Gnosis Chain?
</strong>
<strong>No OLAS or XDAI on Gnosis Chain?</strong>
<Link
target="_blank"
href={'https://swap.cow.fi/#/100/swap/WXDAI/OLAS'}
Expand All @@ -107,6 +105,10 @@ const NoFundsCTAFlex = styled(Flex)<FlexProps>`
border-radius: 2.5px;
padding: 10px;
strong {
fontSize: medium, lineHeight: 0.9em
}
a {
font-size: medium;
text-decoration: underline;
Expand Down
38 changes: 14 additions & 24 deletions frontend/components/Settings.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
import { CloseOutlined, SettingOutlined } from '@ant-design/icons';
import { Button, Card, Flex, Input, message, theme, Typography } from 'antd';
import { Button, Card, Flex, Input, message, Typography } from 'antd';
import { useState } from 'react';
import styled from 'styled-components';

import { PageState } from '@/enums';
import { usePageState } from '@/hooks';

const { useToken } = theme;

export const Settings = () => {
const { setPageState } = usePageState();
const { token } = useToken();

const [isUpdating, setIsUpdating] = useState(false);

Expand All @@ -37,33 +34,26 @@ export const Settings = () => {
</Button>
}
>
<Flex gap={5} vertical>
<Typography.Text>PASSWORD</Typography.Text>
{isUpdating ? (
<Input.Password></Input.Password>
) : (
<Typography.Text>********</Typography.Text>
)}
<Flex justify="space-between" align="center">
<Flex gap={5} vertical>
<Typography.Text>Password</Typography.Text>
{isUpdating ? (
<Input.Password></Input.Password>
) : (
<Typography.Text>********</Typography.Text>
)}
</Flex>
<Button disabled onClick={handleClick}>
{isUpdating ? 'Save' : 'Update'}
</Button>
</Flex>
<Button
type="text"
disabled
onClick={handleClick}
style={{
marginTop: 'auto',
marginLeft: 'auto',
background: token.colorFillSecondary,
}}
>
{isUpdating ? 'Save' : 'Update'}
</Button>
</Card>
);
};

const CardTitleText = styled(Typography.Text)`
margin: 0;
display: inline-flex;
gap: 5;
gap: 5px;
font-weight: 400;
`;
1 change: 0 additions & 1 deletion frontend/components/Setup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ const SetupBackup = () => {
<Input.TextArea
readOnly
value={mnemonic.join(' ')}
style={{ resize: 'none' }}
autoSize={{ minRows: 3, maxRows: 6 }}
disabled
/>
Expand Down

0 comments on commit 7404999

Please sign in to comment.