Skip to content

Commit

Permalink
Merge pull request #56 from kurgm/use-enum-kshotai
Browse files Browse the repository at this point in the history
Use KShotai enum instead of the magic number
  • Loading branch information
kurgm authored Oct 15, 2023
2 parents 290ecfb + 3add8ab commit ae33084
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 ae33084

Please sign in to comment.