Skip to content

Commit

Permalink
Use KShotai enum instead of the magic number
Browse files Browse the repository at this point in the history
Co-authored-by: graphemecluster <[email protected]>
  • Loading branch information
kurgm and graphemecluster committed Oct 15, 2023
1 parent 1aa23ac commit 3add8ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/OptionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ const OptionModal = () => {
value={shotai}
onChange={handleShotaiChange}
>
<option value={0}>{t('mincho style')}</option>
<option value={1}>{t('gothic style')}</option>
<option value={KShotai.kMincho}>{t('mincho style')}</option>
<option value={KShotai.kGothic}>{t('gothic style')}</option>
</select>

<div>{t('show stroke center line')}</div>
Expand Down
2 changes: 1 addition & 1 deletion src/reducers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const initialState: AppState = {
spacingY: 20,
},
showStrokeCenterLine: ShowCenterLine.selection,
shotai: 0, // kMincho
shotai: KShotai.kMincho,
xorMaskType: "none",
};

Expand Down

0 comments on commit 3add8ab

Please sign in to comment.