mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 02:43:33 +00:00
fix typo
This commit is contained in:
parent
2260c0c02b
commit
878e0007d9
3 changed files with 5 additions and 5 deletions
|
|
@ -7,7 +7,7 @@ import {
|
||||||
DiscordDisplayType,
|
DiscordDisplayType,
|
||||||
getServerById,
|
getServerById,
|
||||||
useAppStore,
|
useAppStore,
|
||||||
useDiscordSetttings,
|
useDiscordSettings,
|
||||||
useGeneralSettings,
|
useGeneralSettings,
|
||||||
usePlayerStore,
|
usePlayerStore,
|
||||||
} from '/@/renderer/store';
|
} from '/@/renderer/store';
|
||||||
|
|
@ -17,7 +17,7 @@ import { PlayerStatus } from '/@/shared/types/types';
|
||||||
const discordRpc = isElectron() ? window.api.discordRpc : null;
|
const discordRpc = isElectron() ? window.api.discordRpc : null;
|
||||||
|
|
||||||
export const useDiscordRpc = () => {
|
export const useDiscordRpc = () => {
|
||||||
const discordSettings = useDiscordSetttings();
|
const discordSettings = useDiscordSettings();
|
||||||
const generalSettings = useGeneralSettings();
|
const generalSettings = useGeneralSettings();
|
||||||
const { privateMode } = useAppStore();
|
const { privateMode } = useAppStore();
|
||||||
const [lastUniqueId, setlastUniqueId] = useState('');
|
const [lastUniqueId, setlastUniqueId] = useState('');
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import {
|
||||||
} from '/@/renderer/features/settings/components/settings-section';
|
} from '/@/renderer/features/settings/components/settings-section';
|
||||||
import {
|
import {
|
||||||
DiscordDisplayType,
|
DiscordDisplayType,
|
||||||
useDiscordSetttings,
|
useDiscordSettings,
|
||||||
useGeneralSettings,
|
useGeneralSettings,
|
||||||
useSettingsStoreActions,
|
useSettingsStoreActions,
|
||||||
} from '/@/renderer/store';
|
} from '/@/renderer/store';
|
||||||
|
|
@ -17,7 +17,7 @@ import { TextInput } from '/@/shared/components/text-input/text-input';
|
||||||
|
|
||||||
export const DiscordSettings = () => {
|
export const DiscordSettings = () => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const settings = useDiscordSetttings();
|
const settings = useDiscordSettings();
|
||||||
const generalSettings = useGeneralSettings();
|
const generalSettings = useGeneralSettings();
|
||||||
const { setSettings } = useSettingsStoreActions();
|
const { setSettings } = useSettingsStoreActions();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -803,6 +803,6 @@ export const useRemoteSettings = () => useSettingsStore((state) => state.remote,
|
||||||
|
|
||||||
export const useFontSettings = () => useSettingsStore((state) => state.font, shallow);
|
export const useFontSettings = () => useSettingsStore((state) => state.font, shallow);
|
||||||
|
|
||||||
export const useDiscordSetttings = () => useSettingsStore((state) => state.discord, shallow);
|
export const useDiscordSettings = () => useSettingsStore((state) => state.discord, shallow);
|
||||||
|
|
||||||
export const useCssSettings = () => useSettingsStore((state) => state.css, shallow);
|
export const useCssSettings = () => useSettingsStore((state) => state.css, shallow);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue