use localStorage for cache

This commit is contained in:
Shusui MOYATANI
2023-03-20 20:51:14 +09:00
parent 9a764ba086
commit 44a512c64b
16 changed files with 172 additions and 319 deletions

View File

@@ -145,7 +145,7 @@ const OtherConfig = () => {
return (
<div>
<h3 class="font-bold"></h3>
<div class="flex flex-col justify-evenly gap-2 sm:flex-row">
<div class="flex flex-col justify-evenly gap-2">
<div class="flex w-full">
<div class="flex-1">稿</div>
<ToggleButton
@@ -153,6 +153,16 @@ const OtherConfig = () => {
onClick={() => toggleKeepOpenPostForm()}
/>
</div>
{/*
<div class="flex w-full">
<div class="flex-1">リアクションのデフォルト</div>
<input
type="text"
maxlength="1"
// onBlur={handleChangeReaction}
/>
</div>
*/}
</div>
</div>
);
@@ -160,7 +170,7 @@ const OtherConfig = () => {
const ConfigUI = (props: ConfigProps) => {
return (
<Modal title="設定" onClose={props.onClose}>
<Modal onClose={props.onClose}>
<div class="max-h-[90vh] w-[640px] max-w-[100vw] overflow-y-scroll rounded bg-white p-4 shadow">
<div class="relative">
<div class="flex flex-col gap-1">