mirror of
https://github.com/netbirdio/dashboard.git
synced 2026-01-26 01:21:04 +00:00
Add logout button on error
This commit is contained in:
13
src/App.tsx
13
src/App.tsx
@@ -52,12 +52,19 @@ function App() {
|
||||
return <Result
|
||||
status="warning"
|
||||
title={error.message}
|
||||
extra={
|
||||
<Link to="/">
|
||||
extra={<><Link to="/">
|
||||
<Button type="primary">
|
||||
Try again
|
||||
</Button>
|
||||
</Link>
|
||||
</Link>
|
||||
<Button type="primary" onClick={function () {
|
||||
logout({
|
||||
returnTo: window.location.origin,
|
||||
})
|
||||
}}>
|
||||
Log out
|
||||
</Button>
|
||||
</>
|
||||
}
|
||||
/>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user