Perf/web app authrozation (#22524)
This commit is contained in:
parent
a3ced1b5a6
commit
a324d3942e
35 changed files with 592 additions and 441 deletions
|
|
@ -18,8 +18,8 @@ import {
|
|||
import ThemeSwitcher from '@/app/components/base/theme-switcher'
|
||||
import type { SiteInfo } from '@/models/share'
|
||||
import cn from '@/utils/classnames'
|
||||
import { useGlobalPublicStore } from '@/context/global-public-context'
|
||||
import { AccessMode } from '@/models/access-control'
|
||||
import { useWebAppStore } from '@/context/web-app-context'
|
||||
|
||||
type Props = {
|
||||
data?: SiteInfo
|
||||
|
|
@ -32,7 +32,7 @@ const MenuDropdown: FC<Props> = ({
|
|||
placement,
|
||||
hideLogout,
|
||||
}) => {
|
||||
const webAppAccessMode = useGlobalPublicStore(s => s.webAppAccessMode)
|
||||
const webAppAccessMode = useWebAppStore(s => s.webAppAccessMode)
|
||||
const router = useRouter()
|
||||
const pathname = usePathname()
|
||||
const { t } = useTranslation()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue