mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 22:28:15 +00:00
feat: removed discard icon
This commit is contained in:
+2
-3
@@ -1,5 +1,5 @@
|
|||||||
import { FormProvider, useForm } from "react-hook-form";
|
import { FormProvider, useForm } from "react-hook-form";
|
||||||
import { faCancel, faPlus, faSave } from "@fortawesome/free-solid-svg-icons";
|
import { faPlus, faSave } from "@fortawesome/free-solid-svg-icons";
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
import { zodResolver } from "@hookform/resolvers/zod";
|
import { zodResolver } from "@hookform/resolvers/zod";
|
||||||
import { twMerge } from "tailwind-merge";
|
import { twMerge } from "tailwind-merge";
|
||||||
@@ -81,12 +81,11 @@ export const RolePermissionsSection = ({ roleSlug, isDisabled }: Props) => {
|
|||||||
<>
|
<>
|
||||||
{isDirty && (
|
{isDirty && (
|
||||||
<Button
|
<Button
|
||||||
className="ml-4 text-mineshaft-300"
|
className="mr-4 text-mineshaft-300"
|
||||||
variant="link"
|
variant="link"
|
||||||
isDisabled={isSubmitting}
|
isDisabled={isSubmitting}
|
||||||
isLoading={isSubmitting}
|
isLoading={isSubmitting}
|
||||||
onClick={() => reset()}
|
onClick={() => reset()}
|
||||||
leftIcon={<FontAwesomeIcon icon={faCancel} />}
|
|
||||||
>
|
>
|
||||||
Discard
|
Discard
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user