Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agent: update help text #1169

Merged
merged 6 commits into from
Jun 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/agent/app/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useAragonApi } from '@aragon/api-react'
import { Header, Main, SyncIndicator } from '@aragon/ui'
import Balances from './components/Balances'
import { IdentityProvider } from './components/IdentityManager/IdentityManager'
import InstallFrame from './components/InstallFrame'
import AgentHelp from './components/AgentHelp'
import Transactions from './components/Transactions'

function App() {
Expand Down Expand Up @@ -33,7 +33,7 @@ function App() {
>
<SyncIndicator visible={isSyncing} shift={50} />
<Header primary="Agent" />
<InstallFrame />
<AgentHelp />
<Balances balances={balances} />
<Transactions
agentAddress={proxyAddress}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import React, { useState } from 'react'
import { GU, Info, Link } from '@aragon/ui'
import FrameSvg from './FrameSvg'
import FrameModal from './FrameModal'
import React from 'react'
import { GU, Info, Link, useTheme } from '@aragon/ui'
import AgentSvg from './AgentSvg'

function InstallFrame() {
const [opened, setOpened] = useState(false)
const handleInstallFrameClick = () => setOpened(true)
const handleClose = () => setOpened(false)
function AgentHelp() {
const theme = useTheme()

return (
<React.Fragment>
<FrameModal visible={opened} onClose={handleClose} />
<Info
css={`
margin-bottom: ${2 * GU}px;
Expand All @@ -25,19 +21,24 @@ function InstallFrame() {
align-items: center;
`}
>
<div>
<FrameSvg />
<div
css={`
width: ${6 * GU}px;
height: ${6 * GU}px;
`}
>
<AgentSvg />
</div>
<div>
<div
css={`
margin-bottom: ${0.5 * GU}px;
`}
>
To interact with the Agent app you must install Frame.
The Agent app can be used to interact with external contracts.
</div>
<div>
<Link onClick={handleInstallFrameClick}>Install Frame</Link>
<Link href="https://help.aragon.org/article/37-agent">Learn More</Link>
</div>
</div>
</div>
Expand All @@ -46,4 +47,4 @@ function InstallFrame() {
)
}

export default InstallFrame
export default AgentHelp
Loading