feat: working on profile editing form for primary modal

This commit is contained in:
Leeward Bound
2021-10-12 19:16:40 -07:00
committed by Alec LaLonde
parent c295171548
commit 06b360b1a7

View File

@@ -13,8 +13,7 @@ import {
import React, { FC } from 'react';
import BackgroundImage from '../assets/login-background.jpg';
import { SkillCategory_Enum } from '../graphql/autogen/types';
import { MeType, SkillColors } from '../graphql/types';
import { MeType } from '../graphql/types';
import { TimeZoneOption } from '../utils/skillHelpers';
const DropdownStyles: typeof selectStyles = {
@@ -147,7 +146,7 @@ export const CountrySelectDropdown: FC<CountrySelectDropdownProps> = ({
value={[country]}
options={COUNTRIES_OPTIONS}
onChange={(value) => {
onChange(value);
if (value) onChange(value as CountryOption);
}}
/>
</Box>
@@ -188,7 +187,7 @@ export const TimezoneSelectDropdown: FC<TimezoneSelectDropdownProps> = ({
value={[timezone]}
options={TIMEZONES_OPTIONS}
onChange={(value) => {
onChange(value);
if (value) onChange(value as TimezoneOption);
}}
/>
</Box>