mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Move auth token logic to useApi hook.
This commit is contained in:
parent
d19b6b5a82
commit
3a8bfd1dbd
7 changed files with 56 additions and 28 deletions
|
|
@ -18,6 +18,10 @@ export default function Settings() {
|
|||
const router = useRouter();
|
||||
const { pathname } = router;
|
||||
|
||||
if (!user) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const menuOptions = [
|
||||
{
|
||||
label: <FormattedMessage id="label.websites" defaultMessage="Websites" />,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue