From a671b2c21bfd8967812a2e6871aded18944f0f2e Mon Sep 17 00:00:00 2001 From: Chandragupt Date: Tue, 8 Oct 2024 14:56:23 +0530 Subject: [PATCH] Fix: Updated SVG properties to JSX camelCase format (strokeLinecap, strokeWidth) --- src/components/videoPlayer/icons.tsx | 8 ++++---- tsconfig.json | 27 +++++++++++++++++++++------ 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/src/components/videoPlayer/icons.tsx b/src/components/videoPlayer/icons.tsx index 6b297e4c9..ec64a8e5f 100644 --- a/src/components/videoPlayer/icons.tsx +++ b/src/components/videoPlayer/icons.tsx @@ -100,8 +100,8 @@ export const SkipDurationBackIcon = () => { height="20" fill="none" stroke="currentColor" - stroke-width="2" - stroke-linecap="round" + strokeWidth="2" + strokeLinecap="round" stroke-linejoin="round" > @@ -119,8 +119,8 @@ export const SkipDurationNextIcon = () => { height="20" fill="none" stroke="currentColor" - stroke-width="2" - stroke-linecap="round" + strokeWidth="2" + strokeLinecap="round" stroke-linejoin="round" > diff --git a/tsconfig.json b/tsconfig.json index 88f05644b..adf349623 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,11 @@ "compilerOptions": { "baseUrl": ".", "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -12,7 +16,7 @@ "moduleResolution": "bundler", "resolveJsonModule": true, "isolatedModules": true, - "jsx": "react-jsx", + "jsx": "preserve", "incremental": true, "plugins": [ { @@ -20,10 +24,21 @@ } ], "paths": { - "@/*": ["./src/*"], - "@public/*": ["./public/*"] + "@/*": [ + "./src/*" + ], + "@public/*": [ + "./public/*" + ] } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts" + ], + "exclude": [ + "node_modules" + ] }