mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 10:29:17 +00:00
Lint
This commit is contained in:
@@ -52,7 +52,6 @@ import { WsTag } from "@app/hooks/api/types";
|
||||
import { formSchema, SecretActionType, TFormSchema } from "./SecretListView.utils";
|
||||
import { CreateReminderForm } from "./CreateReminderForm";
|
||||
|
||||
|
||||
type Props = {
|
||||
secret: DecryptedSecret;
|
||||
onSaveSecret: (
|
||||
@@ -71,8 +70,6 @@ type Props = {
|
||||
secretPath: string;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export const SecretItem = memo(
|
||||
({
|
||||
secret,
|
||||
@@ -189,13 +186,12 @@ export const SecretItem = memo(
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
<CreateReminderForm
|
||||
isOpen={createReminderFormOpen}
|
||||
onClose={data => {
|
||||
if(data) {
|
||||
setValue("reminderCron", data.cron, {shouldDirty: true});
|
||||
setValue("reminderNote", data.note, {shouldDirty: true});
|
||||
onClose={(data) => {
|
||||
if (data) {
|
||||
setValue("reminderCron", data.cron, { shouldDirty: true });
|
||||
setValue("reminderNote", data.note, { shouldDirty: true });
|
||||
}
|
||||
setCreateReminderFormOpen.off();
|
||||
}}
|
||||
@@ -375,7 +371,6 @@ export const SecretItem = memo(
|
||||
)}
|
||||
</ProjectPermissionCan>
|
||||
|
||||
|
||||
<IconButton
|
||||
className={twMerge(
|
||||
"w-0 overflow-hidden p-0 group-hover:mr-2 group-hover:w-5 data-[state=open]:w-6",
|
||||
@@ -388,15 +383,15 @@ export const SecretItem = memo(
|
||||
<Tooltip content="Reminder">
|
||||
<FontAwesomeIcon
|
||||
onClick={() => {
|
||||
if(!hasReminder) {
|
||||
if (!hasReminder) {
|
||||
setCreateReminderFormOpen.on();
|
||||
}
|
||||
else {
|
||||
setValue("reminderCron", null, {shouldDirty: true});
|
||||
setValue("reminderNote", null, {shouldDirty: true});
|
||||
} else {
|
||||
setValue("reminderCron", null, { shouldDirty: true });
|
||||
setValue("reminderNote", null, { shouldDirty: true });
|
||||
}
|
||||
}}
|
||||
icon={faClock} />
|
||||
icon={faClock}
|
||||
/>
|
||||
</Tooltip>
|
||||
</IconButton>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user