mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update state initial loader
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { Option, Select } from "@mui/joy";
|
||||
import { isEqual } from "lodash-es";
|
||||
import { useEffect, useState } from "react";
|
||||
import { useState } from "react";
|
||||
import BetaBadge from "@/components/BetaBadge";
|
||||
import Icon from "@/components/Icon";
|
||||
import MobileHeader from "@/components/MobileHeader";
|
||||
@ -28,12 +28,6 @@ const Setting = () => {
|
||||
});
|
||||
const isHost = isEqual(user.role, "HOST");
|
||||
|
||||
useEffect(() => {
|
||||
if (!user) {
|
||||
window.location.href = "/auth";
|
||||
}
|
||||
}, []);
|
||||
|
||||
const handleSectionSelectorItemClick = (settingSection: SettingSection) => {
|
||||
setState({
|
||||
selectedSection: settingSection,
|
||||
|
Reference in New Issue
Block a user