Fix checkbox dark mode UI
All checks were successful
Lint / lint (20.x) (pull_request) Successful in 4m38s
All checks were successful
Lint / lint (20.x) (pull_request) Successful in 4m38s
This commit is contained in:
parent
9158e3a840
commit
b5493c42a7
@ -1,11 +1,15 @@
|
||||
import { useEffect, useMemo } from 'react';
|
||||
import { useFieldArray, useFormContext } from 'react-hook-form';
|
||||
|
||||
// TODO: Use custom checkbox component
|
||||
// Custom checkbox component does not work with react-hook-form
|
||||
import { Checkbox } from '@snowballtools/material-tailwind-react-fork';
|
||||
// import { Checkbox } from 'components/shared/Checkbox';
|
||||
|
||||
import { Button } from 'components/shared/Button';
|
||||
import { InlineNotification } from 'components/shared/InlineNotification';
|
||||
import AddEnvironmentVariableRow from 'components/projects/project/settings/AddEnvironmentVariableRow';
|
||||
import { EnvironmentVariablesFormValues } from 'types/types';
|
||||
import { Checkbox } from 'components/shared/Checkbox';
|
||||
|
||||
const EnvironmentVariablesForm = () => {
|
||||
const {
|
||||
@ -67,10 +71,19 @@ const EnvironmentVariablesForm = () => {
|
||||
/>
|
||||
)}
|
||||
<div className="flex gap-2 p-2">
|
||||
<Checkbox label="Production" {...register('environment.production')} />
|
||||
<Checkbox label="Preview" {...register('environment.preview')} />
|
||||
<Checkbox
|
||||
label="Production"
|
||||
labelProps={{ className: "text-gray-900 dark:text-white" }}
|
||||
{...register('environment.production')}
|
||||
/>
|
||||
<Checkbox
|
||||
label="Preview"
|
||||
labelProps={{ className: "text-gray-900 dark:text-white" }}
|
||||
{...register('environment.preview')}
|
||||
/>
|
||||
<Checkbox
|
||||
label="Development"
|
||||
labelProps={{ className: "text-gray-900 dark:text-white" }}
|
||||
{...register('environment.development')}
|
||||
/>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user