UI fix on the Permissions for (GDC)

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9402
GitOrigin-RevId: bdee9bb7a67ef604474b04a761ebd59fe5150b06
This commit is contained in:
Luca Restagno 2023-06-02 17:51:53 +02:00 committed by hasura-bot
parent 22ff735370
commit eeb879f7f3

View File

@ -1,4 +1,5 @@
import React from 'react';
import { Checkbox } from '../../../../../new-components/Form';
import { PermissionRootType } from './types';
type Props = {
@ -19,15 +20,14 @@ export const SelectPermissionFields: React.FC<Props> = ({
<div className="mr-sm">
<div className="checkbox">
<label title={title}>
<input
type="checkbox"
className="legacy-input-fix disabled:bg-gray-100 disabled:cursor-not-allowed"
<Checkbox
checked={checked}
value={permission}
onChange={() => onPermissionChange(permission)}
disabled={disabled}
/>
<i>{permission}</i>
name={permission}
onCheckedChange={() => onPermissionChange(permission)}
>
{permission}
</Checkbox>
</label>
</div>
</div>