Skip to content

Commit

Permalink
Merge pull request #359 from wkylin/deepsource-transform-bd06b9e0
Browse files Browse the repository at this point in the history
style: format code with Prettier and StandardJS
  • Loading branch information
wkylin authored Jul 13, 2024
2 parents 21c0a14 + 510505f commit e5c70ce
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pages/dashboard/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Dashboard = () => {
const navigate = useNavigate()
// const navigateType = useNavigationType()
const {
token: { colorBgContainer },
token: { colorBgContainer }
} = theme.useToken()

return (
Expand All @@ -20,16 +20,16 @@ const Dashboard = () => {
<Content style={{ height: '100%', background: colorBgContainer }}>
<Routes>
<Route
path="/"
path='/'
element={
<>
{/* <h2>Look, more routes!</h2> */}
{/* <h2>Navigate type: {navigateType}</h2> */}
<Space>
<Button type="primary" onClick={() => navigate('/')}>
<Button type='primary' onClick={() => navigate('/')}>
Navigate /
</Button>
<Button type="primary" onClick={() => navigate('invoices')}>
<Button type='primary' onClick={() => navigate('invoices')}>
navigate to invoices
</Button>
</Space>
Expand All @@ -38,10 +38,10 @@ const Dashboard = () => {
}
/>
<Route
path="invoices"
path='invoices'
element={
<>
<Button type="primary" onClick={() => navigate(-1)}>
<Button type='primary' onClick={() => navigate(-1)}>
navigate to dashborad
</Button>
</>
Expand Down

0 comments on commit e5c70ce

Please sign in to comment.