mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
Advertise admin panel on setting page #3
This commit is contained in:
parent
3f32799723
commit
59baaf90b7
1 changed files with 21 additions and 28 deletions
|
@ -240,37 +240,30 @@ export function SettingsPage() {
|
||||||
{t("settings.account.title")}
|
{t("settings.account.title")}
|
||||||
</Heading1>
|
</Heading1>
|
||||||
{user.account && state.profile.state ? (
|
{user.account && state.profile.state ? (
|
||||||
<div>
|
<AccountSettings
|
||||||
<AccountSettings
|
account={user.account}
|
||||||
account={user.account}
|
deviceName={state.deviceName.state}
|
||||||
deviceName={state.deviceName.state}
|
setDeviceName={state.deviceName.set}
|
||||||
setDeviceName={state.deviceName.set}
|
colorA={state.profile.state.colorA}
|
||||||
colorA={state.profile.state.colorA}
|
setColorA={(v) => {
|
||||||
setColorA={(v) => {
|
state.profile.set((s) => (s ? { ...s, colorA: v } : undefined));
|
||||||
state.profile.set((s) =>
|
}}
|
||||||
s ? { ...s, colorA: v } : undefined,
|
colorB={state.profile.state.colorB}
|
||||||
);
|
setColorB={(v) =>
|
||||||
}}
|
state.profile.set((s) => (s ? { ...s, colorB: v } : undefined))
|
||||||
colorB={state.profile.state.colorB}
|
}
|
||||||
setColorB={(v) =>
|
userIcon={state.profile.state.icon as any}
|
||||||
state.profile.set((s) =>
|
setUserIcon={(v) =>
|
||||||
s ? { ...s, colorB: v } : undefined,
|
state.profile.set((s) => (s ? { ...s, icon: v } : undefined))
|
||||||
)
|
}
|
||||||
}
|
/>
|
||||||
userIcon={state.profile.state.icon as any}
|
|
||||||
setUserIcon={(v) =>
|
|
||||||
state.profile.set((s) => (s ? { ...s, icon: v } : undefined))
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
<AdminPanelPart />
|
|
||||||
</div>
|
|
||||||
) : (
|
) : (
|
||||||
<div>
|
<RegisterCalloutPart />
|
||||||
<RegisterCalloutPart />
|
|
||||||
<AdminPanelPart />
|
|
||||||
</div>
|
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
<div className="mt-10">
|
||||||
|
<AdminPanelPart />
|
||||||
|
</div>
|
||||||
<div id="settings-preferences" className="mt-48">
|
<div id="settings-preferences" className="mt-48">
|
||||||
<PreferencesPart
|
<PreferencesPart
|
||||||
language={state.appLanguage.state}
|
language={state.appLanguage.state}
|
||||||
|
|
Loading…
Reference in a new issue