-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'staging' of github.com:valory-xyz/olas-operate-app into…
… feature/improve-app-closing-and-kill-procs
- Loading branch information
Showing
32 changed files
with
847 additions
and
156 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
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
34 changes: 34 additions & 0 deletions
34
frontend/components/MainPage/sections/AddBackupWalletAlert.tsx
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,34 @@ | ||
import { Flex, Typography } from 'antd'; | ||
|
||
import { Pages } from '@/enums/PageState'; | ||
import { usePageState } from '@/hooks/usePageState'; | ||
|
||
import { CustomAlert } from '../../Alert'; | ||
import { CardSection } from '../../styled/CardSection'; | ||
|
||
const { Text } = Typography; | ||
|
||
export const AddBackupWalletAlert = () => { | ||
const { goto } = usePageState(); | ||
|
||
return ( | ||
<CardSection> | ||
<CustomAlert | ||
type="warning" | ||
fullWidth | ||
showIcon | ||
message={ | ||
<Flex align="center" justify="space-between" gap={2}> | ||
<span>Add backup wallet</span> | ||
<Text | ||
className="pointer hover-underline text-primary" | ||
onClick={() => goto(Pages.AddBackupWalletViaSafe)} | ||
> | ||
See instructions | ||
</Text> | ||
</Flex> | ||
} | ||
/> | ||
</CardSection> | ||
); | ||
}; |
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
42 changes: 42 additions & 0 deletions
42
frontend/components/Pages/AddBackupWalletViaSafePage/index.tsx
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,42 @@ | ||
import { Card, Flex, Typography } from 'antd'; | ||
|
||
import { CardTitle } from '@/components/Card/CardTitle'; | ||
import { UNICODE_SYMBOLS } from '@/constants/symbols'; | ||
import { DISCORD_TICKET_URL } from '@/constants/urls'; | ||
import { useWallet } from '@/hooks/useWallet'; | ||
|
||
import { GoToMainPageButton } from '../GoToMainPageButton'; | ||
|
||
const { Text } = Typography; | ||
|
||
export const AddBackupWalletViaSafePage = () => { | ||
const { masterSafeAddress } = useWallet(); | ||
|
||
return ( | ||
<Card | ||
title={<CardTitle title="Add backup wallet via Safe" />} | ||
bordered={false} | ||
extra={<GoToMainPageButton />} | ||
> | ||
<Flex vertical gap={16}> | ||
<Flex vertical gap={4}> | ||
<Text>Manually add backup wallet via Safe interface:</Text> | ||
<a | ||
target="_blank" | ||
href={`https://app.safe.global/settings/setup?safe=gno:${masterSafeAddress}`} | ||
> | ||
Add backup wallet {UNICODE_SYMBOLS.EXTERNAL_LINK} | ||
</a> | ||
</Flex> | ||
|
||
<Flex vertical gap={4}> | ||
<Text>Not sure how?</Text> | ||
<a target="_blank" href={DISCORD_TICKET_URL}> | ||
Get community assistance via Discord ticket{' '} | ||
{UNICODE_SYMBOLS.EXTERNAL_LINK} | ||
</a> | ||
</Flex> | ||
</Flex> | ||
</Card> | ||
); | ||
}; |
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,17 @@ | ||
import { CloseOutlined } from '@ant-design/icons'; | ||
import { Button } from 'antd'; | ||
|
||
import { Pages } from '@/enums/PageState'; | ||
import { usePageState } from '@/hooks/usePageState'; | ||
|
||
export const GoToMainPageButton = () => { | ||
const { goto } = usePageState(); | ||
|
||
return ( | ||
<Button | ||
size="large" | ||
icon={<CloseOutlined />} | ||
onClick={() => goto(Pages.Main)} | ||
/> | ||
); | ||
}; |
Oops, something went wrong.