This commit is contained in:
Shusui MOYATANI
2023-03-22 02:36:04 +09:00
parent db289c5276
commit 4e165bc879
21 changed files with 463 additions and 112 deletions

View File

@@ -142,6 +142,13 @@ const OtherConfig = () => {
}));
};
const toggleShowImage = () => {
setConfig((current) => ({
...current,
showImage: !(current.showImage ?? true),
}));
};
return (
<div>
<h3 class="font-bold"></h3>
@@ -153,6 +160,10 @@ const OtherConfig = () => {
onClick={() => toggleKeepOpenPostForm()}
/>
</div>
<div class="flex w-full">
<div class="flex-1"></div>
<ToggleButton value={config().showImage} onClick={() => toggleShowImage()} />
</div>
{/*
<div class="flex w-full">
<div class="flex-1">リアクションのデフォルト</div>