Use a <select for picking API expiration, fix some text color issues in dark mode

This commit is contained in:
Jackson Harper
2022-06-13 22:46:49 -07:00
parent bacc117cd2
commit 927ec54775
5 changed files with 36 additions and 9 deletions

View File

@ -66,6 +66,14 @@ export function GeneralFormInput(props: FormInputProps): JSX.Element {
))}
</VStack>
)
} else if (props.type === 'select') {
return (
<select onChange={input.onChange}>
{input.options?.map((label, index) => (
<option key={index} value={label}>{label}</option>
))}
</select>
)
} else {
return (
<FormInput

View File

@ -150,7 +150,7 @@ export function Table(props: TableProps): JSX.Element {
>
<StyledText
key={index}
style="highlightTitle"
style="menuTitle"
css={{
color: '$grayTextContrast',
'@md': {