Skip to content

Commit cf80b08

Browse files
committed
add app name
1 parent e983c3c commit cf80b08

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

src/components/Simulator/screens/ConnectWeb3/Web3App.tsx

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ import { NotificationPopover } from "../../NotificationPopover"
1414

1515
interface IProps extends BoxProps {
1616
displayUrl: string
17-
connected?: boolean
17+
appName?: string
1818
}
1919
export const Web3App: React.FC<IProps> = ({
2020
displayUrl,
21-
connected,
21+
appName,
2222
children,
2323
...boxProps
2424
}) => {
@@ -35,9 +35,18 @@ export const Web3App: React.FC<IProps> = ({
3535
title="Example walkthrough"
3636
content="Try out a real Ethereum application when finished here"
3737
>
38-
<Flex p={6} fontSize="4xl" justify="space-between" alignItems="center">
38+
<Flex p={6} fontSize="4xl" gap={3} alignItems="center">
3939
<Icon as={EthGlyphIcon} />
40-
{connected && <Text fontSize="sm">{FAKE_DEMO_ADDRESS}</Text>}
40+
<Box flex={1} cursor="default">
41+
{appName && (
42+
<>
43+
<Text fontSize="md" fontWeight="bold">
44+
{appName}
45+
</Text>
46+
<Text fontSize="sm">{FAKE_DEMO_ADDRESS}</Text>
47+
</>
48+
)}
49+
</Box>
4150
<Icon as={GrMenu} sx={{ path: { stroke: "body.base" } }} />
4251
</Flex>
4352
</NotificationPopover>

src/components/Simulator/screens/ConnectWeb3/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ export const ConnectWeb3: React.FC<PhoneScreenProps> = ({ nav, ctaLabel }) => {
9797
exit={{ opacity: 0 }}
9898
style={{ height: "100%" }}
9999
>
100-
<Web3App bg="background.base" connected displayUrl="app.example.com">
100+
<Web3App
101+
bg="background.base"
102+
appName="NFT Marketplace"
103+
displayUrl="app.example.com"
104+
>
101105
<Box
102106
px={6}
103107
py={{ base: 2, md: 6 }}

0 commit comments

Comments
 (0)