fix: update settings problem
chore: ignore yarnrc files
This commit is contained in:
parent
cc6776687c
commit
956d0ad098
3 changed files with 7 additions and 5 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -3,4 +3,6 @@ built
|
||||||
yarn-error.log
|
yarn-error.log
|
||||||
config.json
|
config.json
|
||||||
.yarn
|
.yarn
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
.yarnrc
|
||||||
|
.yarnrc.yml
|
|
@ -1,2 +0,0 @@
|
||||||
yarnPath: .yarn/releases/yarn-1.22.19.cjs
|
|
||||||
nodeLinker: node-modules
|
|
|
@ -37,6 +37,7 @@ type SettingDraftType = Partial<Pick<IUser,
|
||||||
| 'remoteFollowersOnly'
|
| 'remoteFollowersOnly'
|
||||||
| 'template'
|
| 'template'
|
||||||
| 'useRanking'
|
| 'useRanking'
|
||||||
|
| 'appendHashtag'
|
||||||
>>;
|
>>;
|
||||||
|
|
||||||
type DraftReducer = React.Reducer<SettingDraftType, Partial<SettingDraftType>>;
|
type DraftReducer = React.Reducer<SettingDraftType, Partial<SettingDraftType>>;
|
||||||
|
@ -60,7 +61,7 @@ export const MisshaiPage: React.VFC = () => {
|
||||||
remoteFollowersOnly: data?.remoteFollowersOnly ?? false,
|
remoteFollowersOnly: data?.remoteFollowersOnly ?? false,
|
||||||
template: data?.template ?? null,
|
template: data?.template ?? null,
|
||||||
useRanking: data?.useRanking ?? false,
|
useRanking: data?.useRanking ?? false,
|
||||||
appendHashtag: data?.appendHashtag ?? true,
|
appendHashtag: data?.appendHashtag ?? true,
|
||||||
});
|
});
|
||||||
|
|
||||||
const templateTextarea = useRef<HTMLTextAreaElement>(null);
|
const templateTextarea = useRef<HTMLTextAreaElement>(null);
|
||||||
|
@ -101,7 +102,8 @@ export const MisshaiPage: React.VFC = () => {
|
||||||
localOnly: data.localOnly,
|
localOnly: data.localOnly,
|
||||||
remoteFollowersOnly: data.remoteFollowersOnly,
|
remoteFollowersOnly: data.remoteFollowersOnly,
|
||||||
template: data.template,
|
template: data.template,
|
||||||
useRanking: data.useRanking
|
useRanking: data.useRanking,
|
||||||
|
appendHastag: data.appendHashtag
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, [data]);
|
}, [data]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue