Co-authored-by: Xiaoba Yu <xb1823725853@gmail.com>
This commit is contained in:
@@ -1,11 +1,10 @@
|
|||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import { useContext } from 'use-context-selector'
|
|
||||||
import I18n from '@/context/i18n'
|
|
||||||
import { X } from '@/app/components/base/icons/src/vender/line/general'
|
import { X } from '@/app/components/base/icons/src/vender/line/general'
|
||||||
import { NOTICE_I18N } from '@/i18n/language'
|
import { NOTICE_I18N } from '@/i18n/language'
|
||||||
|
import { useLanguage } from '@/app/components/header/account-setting/model-provider-page/hooks'
|
||||||
|
|
||||||
const MaintenanceNotice = () => {
|
const MaintenanceNotice = () => {
|
||||||
const { locale } = useContext(I18n)
|
const locale = useLanguage()
|
||||||
|
|
||||||
const [showNotice, setShowNotice] = useState(localStorage.getItem('hide-maintenance-notice') !== '1')
|
const [showNotice, setShowNotice] = useState(localStorage.getItem('hide-maintenance-notice') !== '1')
|
||||||
const handleJumpNotice = () => {
|
const handleJumpNotice = () => {
|
||||||
|
Reference in New Issue
Block a user