mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
close form when saving
This commit is contained in:
@@ -219,9 +219,16 @@ export const SetupPersonalityType: React.FC<SetupPersonalityTypeProps> = ({
|
||||
|
||||
<ColorBar mask={colorMask} mt={8} w="min(100vw, 30rem)" />
|
||||
|
||||
{isEdit && (
|
||||
{isEdit && onClose && (
|
||||
<ModalFooter mt={6}>
|
||||
<Button colorScheme="blue" mr={3} onClick={save}>
|
||||
<Button
|
||||
colorScheme="blue"
|
||||
mr={3}
|
||||
onClick={() => {
|
||||
save();
|
||||
onClose();
|
||||
}}
|
||||
>
|
||||
Save Changes
|
||||
</Button>
|
||||
<Button
|
||||
|
||||
@@ -121,9 +121,16 @@ export const SetupPlayerType: React.FC<Props> = ({ isEdit, onClose }) => {
|
||||
))}
|
||||
</SimpleGrid>
|
||||
|
||||
{isEdit && (
|
||||
{isEdit && onClose && (
|
||||
<ModalFooter mt={6}>
|
||||
<Button colorScheme="blue" mr={3} onClick={save}>
|
||||
<Button
|
||||
colorScheme="blue"
|
||||
mr={3}
|
||||
onClick={() => {
|
||||
save();
|
||||
onClose();
|
||||
}}
|
||||
>
|
||||
Save Changes
|
||||
</Button>
|
||||
<Button
|
||||
|
||||
@@ -131,9 +131,16 @@ export const SetupSkills: React.FC<SetupSkillsProps> = ({
|
||||
placeholder="ADD YOUR SKILLS"
|
||||
/>
|
||||
</FlexContainer>
|
||||
{isEdit && (
|
||||
{isEdit && onClose && (
|
||||
<ModalFooter mt={6}>
|
||||
<Button colorScheme="blue" mr={3} onClick={save}>
|
||||
<Button
|
||||
colorScheme="blue"
|
||||
mr={3}
|
||||
onClick={() => {
|
||||
save();
|
||||
onClose();
|
||||
}}
|
||||
>
|
||||
Save Changes
|
||||
</Button>
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user