-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #290 from valory-xyz/staging
Staging to Main, for 117 release
- Loading branch information
Showing
84 changed files
with
3,186 additions
and
1,380 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
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,5 @@ | ||
import { Typography } from 'antd'; | ||
|
||
export const AlertTitle = ({ children }: { children: React.ReactNode }) => ( | ||
<Typography.Text className="font-weight-600">{children}</Typography.Text> | ||
); |
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 was deleted.
Oops, something went wrong.
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,58 @@ | ||
import { Button, Flex, Modal, Typography } from 'antd'; | ||
import Image from 'next/image'; | ||
import { FC } from 'react'; | ||
|
||
import { useServiceTemplates } from '@/hooks/useServiceTemplates'; | ||
import { getMinimumStakedAmountRequired } from '@/utils/service'; | ||
|
||
type FirstRunModalProps = { open: boolean; onClose: () => void }; | ||
|
||
export const FirstRunModal: FC<FirstRunModalProps> = ({ open, onClose }) => { | ||
const { getServiceTemplates } = useServiceTemplates(); | ||
|
||
if (!open) return null; | ||
|
||
const minimumStakedAmountRequired = getMinimumStakedAmountRequired( | ||
getServiceTemplates()[0], | ||
); | ||
|
||
return ( | ||
<Modal | ||
open={open} | ||
width={412} | ||
onCancel={onClose} | ||
footer={[ | ||
<Button | ||
key="ok" | ||
type="primary" | ||
block | ||
size="large" | ||
className="mt-8" | ||
onClick={onClose} | ||
> | ||
Got it | ||
</Button>, | ||
]} | ||
> | ||
<Flex align="center" justify="center"> | ||
<Image | ||
src="/splash-robot-head.png" | ||
width={100} | ||
height={100} | ||
alt="OLAS logo" | ||
/> | ||
</Flex> | ||
<Typography.Title level={5} className="mt-12 text-center"> | ||
{`Your agent is running and you've staked ${minimumStakedAmountRequired} OLAS!`} | ||
</Typography.Title> | ||
<Typography.Paragraph> | ||
Your agent is working towards earning rewards. | ||
</Typography.Paragraph> | ||
<Typography.Paragraph> | ||
Pearl is designed to make it easy for you to earn staking rewards every | ||
day. Simply leave the app and agent running in the background for ~1hr a | ||
day. | ||
</Typography.Paragraph> | ||
</Modal> | ||
); | ||
}; |
Oops, something went wrong.