feat: logout

:%s
This commit is contained in:
lytrankieio123
2021-09-29 16:58:12 +07:00
parent 660ba8d301
commit faabf5228d
12 changed files with 201 additions and 121 deletions

View File

@@ -1,13 +1,16 @@
import React from 'react';
import { Layout } from 'src/components/common';
import { AccountPage } from 'src/components/modules/account';
import React from 'react'
import { Layout } from 'src/components/common'
import useActiveCustomer from 'src/components/hooks/useActiveCustomer'
import { AccountPage, AccountSignIn } from 'src/components/modules/account'
const Account = () => {
return (
<AccountPage/>
);
};
const { customer } = useActiveCustomer()
if (customer) {
return <AccountPage />
}
return <AccountSignIn />
}
Account.Layout = Layout
export default Account;
export default Account