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

Sandbox updates #141

Merged
merged 2 commits into from
Sep 25, 2023
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
24 changes: 24 additions & 0 deletions examples/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed examples/assets/radix-icon_128x128.png
Binary file not shown.
5 changes: 4 additions & 1 deletion examples/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ function SideNav(props: BoxProps) {
borderColor: 'divider',
display: {
xs: 'none',
sm: 'initial',
sm: 'flex',
},
flexDirection: 'column',
},
...(Array.isArray(props.sx) ? props.sx : [props.sx]),
]}
Expand Down Expand Up @@ -155,6 +156,8 @@ function SideDrawer({
height: '100%',
p: 2,
boxShadow: 'lg',
display: 'flex',
flexDirection: 'column',
bgcolor: 'background.surface',
}}
>
Expand Down
8 changes: 2 additions & 6 deletions examples/layouts/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// @ts-ignore
import radixLogo from '../assets/radix-icon_128x128.png'
import radixLogo from '../assets/logo.svg'
import * as React from 'react'
import '@radixdlt/dapps-dropdown'
import Box from '@mui/joy/Box'
import Typography from '@mui/joy/Typography'
import IconButton from '@mui/joy/IconButton'
import Layout from '../components/Layout'
import MenuIcon from '@mui/icons-material/Menu'
Expand Down Expand Up @@ -52,14 +51,11 @@ export const Header = ({
<MenuIcon />
</IconButton>
<img
style={{ width: 30 }}
src={radixLogo}
className="logo"
style={{ maxHeight: '50px' }}
alt="Radix logo"
/>
<Typography component="h1" fontWeight="xl">
Radix dApp Sandbox
</Typography>
</Box>

<Box
Expand Down
7 changes: 7 additions & 0 deletions examples/layouts/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Header } from '../layouts/Header'
import { Sidebar } from '../layouts/Sidebar'
import { Logger } from '../logger/Logger'
import { Outlet } from 'react-router-dom'
import { Link } from '@mui/joy'

export const Page = () => {
const [drawerOpen, setDrawerOpen] = React.useState(false)
Expand All @@ -16,6 +17,9 @@ export const Page = () => {
{drawerOpen && (
<Layout.SideDrawer onClose={() => setDrawerOpen(false)}>
<Sidebar />
<Link target="_blank" href="https://www.radixdlt.com/privacy-policy">
Privacy Policy
</Link>
</Layout.SideDrawer>
)}
<Layout.Root
Expand All @@ -30,6 +34,9 @@ export const Page = () => {

<Layout.SideNav>
<Sidebar />
<Link target="_blank" href="https://www.radixdlt.com/privacy-policy">
Privacy Policy
</Link>
</Layout.SideNav>

<Layout.Main>
Expand Down
Loading