Use a <select for picking API expiration, fix some text color issues in dark mode
This commit is contained in:
@ -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
|
||||
|
||||
@ -150,7 +150,7 @@ export function Table(props: TableProps): JSX.Element {
|
||||
>
|
||||
<StyledText
|
||||
key={index}
|
||||
style="highlightTitle"
|
||||
style="menuTitle"
|
||||
css={{
|
||||
color: '$grayTextContrast',
|
||||
'@md': {
|
||||
|
||||
Reference in New Issue
Block a user