mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
fixing logout
This commit is contained in:
parent
35d7816036
commit
6f6761bc76
@ -33,7 +33,11 @@ function App() {
|
||||
<ViewportContextProvider>
|
||||
<AppContextProvider>
|
||||
<AppWrapper>
|
||||
<ConfigProvider theme={{ token: { colorPrimary: Colors.primary } }}>
|
||||
<ConfigProvider theme={{ token: {
|
||||
colorPrimary: Colors.primary,
|
||||
colorLink: Colors.primary,
|
||||
colorLinkHover: Colors.background,
|
||||
} }}>
|
||||
<Router>
|
||||
<Routes>
|
||||
<Route path="/" element={ <Root /> } />
|
||||
|
@ -27,7 +27,6 @@ export function useAppContext(websocket) {
|
||||
const ws = useRef(null);
|
||||
|
||||
const updateState = (value) => {
|
||||
console.log(" UPDATE STATE", value);
|
||||
setState((s) => ({ ...s, ...value }))
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Button, Modal, Dropdown, Menu, Tooltip } from 'antd';
|
||||
import { Modal, Dropdown, Menu, Tooltip } from 'antd';
|
||||
import { Logo } from 'logo/Logo';
|
||||
import { IdentityWrapper, ErrorNotice, InfoNotice } from './Identity.styled';
|
||||
import { useIdentity } from './useIdentity.hook';
|
||||
@ -10,9 +10,12 @@ export function Identity({ openAccount, openCards, cardUpdated }) {
|
||||
|
||||
const logout = () => {
|
||||
Modal.confirm({
|
||||
title: 'you sure you want to logout?',
|
||||
title: 'Are you sure you want to logout?',
|
||||
icon: <LogoutOutlined />,
|
||||
footer: <div><Button type="primary">COOL</Button></div>,
|
||||
onOk() {
|
||||
actions.logout();
|
||||
},
|
||||
onCancel() {},
|
||||
});
|
||||
}
|
||||
|
||||
@ -68,3 +71,4 @@ export function Identity({ openAccount, openCards, cardUpdated }) {
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user