From a2e93489f2a6e9cd5e535a108e4d1408a7142788 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Tue, 11 Jun 2024 20:28:31 +0530 Subject: [PATCH] Fix lints --- web/apps/accounts/.eslintrc.js | 1 - web/apps/accounts/src/pages/_app.tsx | 2 +- web/packages/shared/components/DialogBoxV2/types.ts | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/web/apps/accounts/.eslintrc.js b/web/apps/accounts/.eslintrc.js index 7858067171..fc6d400d50 100644 --- a/web/apps/accounts/.eslintrc.js +++ b/web/apps/accounts/.eslintrc.js @@ -6,7 +6,6 @@ module.exports = { "react/react-in-jsx-scope": "off", "react/prop-types": "off", "react-hooks/exhaustive-deps": "off", - "@typescript-eslint/no-unsafe-assignment": "off", "@typescript-eslint/no-misused-promises": "off", "@typescript-eslint/no-explicit-any": "off", "react-refresh/only-export-components": "off", diff --git a/web/apps/accounts/src/pages/_app.tsx b/web/apps/accounts/src/pages/_app.tsx index 8f65540719..8d14ea7cd4 100644 --- a/web/apps/accounts/src/pages/_app.tsx +++ b/web/apps/accounts/src/pages/_app.tsx @@ -92,7 +92,7 @@ export default function App({ Component, pageProps }: AppProps) { sx={{ zIndex: 1600 }} open={dialogBoxV2View} onClose={closeDialogBoxV2} - attributes={dialogBoxAttributeV2 as any} + attributes={dialogBoxAttributeV2} /> diff --git a/web/packages/shared/components/DialogBoxV2/types.ts b/web/packages/shared/components/DialogBoxV2/types.ts index f2ac31f0b1..d7db388600 100644 --- a/web/packages/shared/components/DialogBoxV2/types.ts +++ b/web/packages/shared/components/DialogBoxV2/types.ts @@ -13,7 +13,7 @@ export interface DialogBoxAttributesV2 { title?: React.ReactNode; staticBackdrop?: boolean; nonClosable?: boolean; - content?: any; + content?: React.ReactNode; close?: { text?: string; variant?: ButtonProps["color"];