Add switch and styling for perpetuity rings
This commit is contained in:
parent
dd8f1906e8
commit
26a30ad89c
4 changed files with 24 additions and 1 deletions
|
|
@ -15,6 +15,16 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: $unit-half;
|
gap: $unit-half;
|
||||||
|
|
||||||
|
&.inline {
|
||||||
|
align-items: center;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
color: $grey-55;
|
color: $grey-55;
|
||||||
font-size: $font-small;
|
font-size: $font-small;
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ import Button from '~components/Button'
|
||||||
import SelectWithInput from '~components/SelectWithInput'
|
import SelectWithInput from '~components/SelectWithInput'
|
||||||
import AwakeningSelect from '~components/AwakeningSelect'
|
import AwakeningSelect from '~components/AwakeningSelect'
|
||||||
import RingSelect from '~components/RingSelect'
|
import RingSelect from '~components/RingSelect'
|
||||||
|
import Switch from '~components/Switch'
|
||||||
|
|
||||||
// Utilities
|
// Utilities
|
||||||
import api from '~utils/api'
|
import api from '~utils/api'
|
||||||
|
|
@ -233,7 +234,7 @@ const CharacterModal = ({
|
||||||
const awakeningSelect = () => {
|
const awakeningSelect = () => {
|
||||||
return (
|
return (
|
||||||
<section>
|
<section>
|
||||||
<h3>{t('modals.weapon.subtitles.awakening')}</h3>
|
<h3>{t('modals.characters.subtitles.awakening')}</h3>
|
||||||
<AwakeningSelect
|
<AwakeningSelect
|
||||||
object="character"
|
object="character"
|
||||||
awakeningType={gridCharacter.awakening?.type}
|
awakeningType={gridCharacter.awakening?.type}
|
||||||
|
|
@ -245,6 +246,15 @@ const CharacterModal = ({
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const perpetuitySwitch = () => {
|
||||||
|
return (
|
||||||
|
<section className="inline">
|
||||||
|
<h3>{t('modals.characters.subtitles.permanent')}</h3>
|
||||||
|
<Switch />
|
||||||
|
</section>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog open={open} onOpenChange={openChange}>
|
<Dialog open={open} onOpenChange={openChange}>
|
||||||
<DialogTrigger asChild>{children}</DialogTrigger>
|
<DialogTrigger asChild>{children}</DialogTrigger>
|
||||||
|
|
@ -275,6 +285,7 @@ const CharacterModal = ({
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="mods">
|
<div className="mods">
|
||||||
|
{perpetuitySwitch()}
|
||||||
{ringSelect()}
|
{ringSelect()}
|
||||||
{earringSelect()}
|
{earringSelect()}
|
||||||
{awakeningSelect()}
|
{awakeningSelect()}
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,7 @@
|
||||||
"subtitles": {
|
"subtitles": {
|
||||||
"ring": "Over Mastery",
|
"ring": "Over Mastery",
|
||||||
"earring": "Aetherial Mastery",
|
"earring": "Aetherial Mastery",
|
||||||
|
"permanent": "Permanent Mastery",
|
||||||
"awakening": "Awakening"
|
"awakening": "Awakening"
|
||||||
},
|
},
|
||||||
"messages": {
|
"messages": {
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,7 @@
|
||||||
"subtitles": {
|
"subtitles": {
|
||||||
"ring": "EXリミットボーナス",
|
"ring": "EXリミットボーナス",
|
||||||
"earring": "エーテリアルプラス",
|
"earring": "エーテリアルプラス",
|
||||||
|
"permanent": "マスタリーボーナス",
|
||||||
"awakening": "覚醒"
|
"awakening": "覚醒"
|
||||||
},
|
},
|
||||||
"messages": {
|
"messages": {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue