mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-17 05:54:19 +01:00
update
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user