fixing logout

This commit is contained in:
Roland Osborne 2023-01-13 23:01:32 -08:00
parent 35d7816036
commit 6f6761bc76
3 changed files with 12 additions and 5 deletions

View File

@ -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 /> } />

View File

@ -27,7 +27,6 @@ export function useAppContext(websocket) {
const ws = useRef(null);
const updateState = (value) => {
console.log(" UPDATE STATE", value);
setState((s) => ({ ...s, ...value }))
}

View File

@ -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 }) {
);
}