From 553cf11ad25bb070d086672ceb941099aef035f3 Mon Sep 17 00:00:00 2001 From: Tuan Dang Date: Mon, 12 Jun 2023 12:16:23 +0100 Subject: [PATCH] Fix lint issue --- .../components/E2EESection/E2EESection.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/Settings/ProjectSettingsPage/components/E2EESection/E2EESection.tsx b/frontend/src/views/Settings/ProjectSettingsPage/components/E2EESection/E2EESection.tsx index 66037afe5..4faf3e763 100644 --- a/frontend/src/views/Settings/ProjectSettingsPage/components/E2EESection/E2EESection.tsx +++ b/frontend/src/views/Settings/ProjectSettingsPage/components/E2EESection/E2EESection.tsx @@ -1,11 +1,13 @@ import { useEffect, useState } from "react"; -import { - Checkbox -} from "@app/components/v2"; + import { decryptAssymmetric, encryptAssymmetric } from "@app/components/utilities/cryptography/crypto"; +import { + Checkbox +} from "@app/components/v2"; + import getBot from '../../../../../pages/api/bot/getBot'; import setBotActiveStatus from '../../../../../pages/api/bot/setBotActiveStatus'; import getLatestFileKey from '../../../../../pages/api/workspace/getLatestFileKey'; @@ -101,7 +103,7 @@ export const E2EESection = ({ className="data-[state=checked]:bg-primary" id="autoCapitalization" isChecked={!bot.isActive} - onCheckedChange={async (state) => { + onCheckedChange={async () => { await toggleBotActivate(); }} >