mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 17:35:28 +00:00
feat(mobx): rewrite appearance menu
This commit is contained in:
@@ -58,7 +58,7 @@ export function ThemeBaseSelector({ value, setValue }: Props) {
|
||||
src={lightSVG}
|
||||
draggable={false}
|
||||
data-active={value === "light"}
|
||||
onClick={() => value !== "light" && setValue("light")}
|
||||
onClick={() => setValue("light")}
|
||||
onContextMenu={(e) => e.preventDefault()}
|
||||
/>
|
||||
<h4>
|
||||
@@ -71,7 +71,7 @@ export function ThemeBaseSelector({ value, setValue }: Props) {
|
||||
src={darkSVG}
|
||||
draggable={false}
|
||||
data-active={value === "dark"}
|
||||
onClick={() => value !== "dark" && setValue("dark")}
|
||||
onClick={() => setValue("dark")}
|
||||
onContextMenu={(e) => e.preventDefault()}
|
||||
/>
|
||||
<h4>
|
||||
|
||||
Reference in New Issue
Block a user