Wire up switch for perpetuity
This commit is contained in:
parent
d9551a3e8e
commit
f2584459f7
1 changed files with 5 additions and 1 deletions
|
|
@ -156,6 +156,10 @@ const CharacterModal = ({
|
|||
})
|
||||
}
|
||||
|
||||
function handleCheckedChange(checked: boolean) {
|
||||
setPerpetuity(checked)
|
||||
}
|
||||
|
||||
function receiveAwakeningValues(type: number, level: number) {
|
||||
setAwakeningType(type)
|
||||
setAwakeningLevel(level)
|
||||
|
|
@ -261,7 +265,7 @@ const CharacterModal = ({
|
|||
return (
|
||||
<section className="inline">
|
||||
<h3>{t('modals.characters.subtitles.permanent')}</h3>
|
||||
<Switch />
|
||||
<Switch onCheckedChange={handleCheckedChange} checked={perpetuity} />
|
||||
</section>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue