From a1c7168cc23aa1d277b4706a76993874ee8d1f20 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 14 Sep 2023 00:52:18 +0000 Subject: [PATCH] chore(autofmt): Automated formatting --- console/client/src/theme/colors.js | 34 +++++++------- console/client/src/theme/create-shadows.js | 6 +-- console/client/src/theme/create-typography.js | 47 ++++++++++--------- console/client/tsconfig.json | 10 +--- 4 files changed, 46 insertions(+), 51 deletions(-) diff --git a/console/client/src/theme/colors.js b/console/client/src/theme/colors.js index 7915b5a0d5..d3923bbf02 100644 --- a/console/client/src/theme/colors.js +++ b/console/client/src/theme/colors.js @@ -1,4 +1,4 @@ -import { alpha } from '@mui/material/styles'; +import { alpha } from '@mui/material/styles' const withAlphas = (color) => { return { @@ -6,10 +6,10 @@ const withAlphas = (color) => { alpha4: alpha(color.main, 0.04), alpha8: alpha(color.main, 0.08), alpha12: alpha(color.main, 0.12), - alpha30: alpha(color.main, 0.30), - alpha50: alpha(color.main, 0.50) - }; -}; + alpha30: alpha(color.main, 0.3), + alpha50: alpha(color.main, 0.5), + } +} export const neutral = { 50: '#F8F9FA', @@ -21,8 +21,8 @@ export const neutral = { 600: '#4D5761', 700: '#2F3746', 800: '#1C2536', - 900: '#111927' -}; + 900: '#111927', +} export const indigo = withAlphas({ lightest: '#F5F7FF', @@ -30,8 +30,8 @@ export const indigo = withAlphas({ main: '#6366F1', dark: '#4338CA', darkest: '#312E81', - contrastText: '#FFFFFF' -}); + contrastText: '#FFFFFF', +}) export const success = withAlphas({ lightest: '#F0FDF9', @@ -39,8 +39,8 @@ export const success = withAlphas({ main: '#10B981', dark: '#0B815A', darkest: '#134E48', - contrastText: '#FFFFFF' -}); + contrastText: '#FFFFFF', +}) export const info = withAlphas({ lightest: '#ECFDFF', @@ -48,8 +48,8 @@ export const info = withAlphas({ main: '#06AED4', dark: '#0E7090', darkest: '#164C63', - contrastText: '#FFFFFF' -}); + contrastText: '#FFFFFF', +}) export const warning = withAlphas({ lightest: '#FFFAEB', @@ -57,8 +57,8 @@ export const warning = withAlphas({ main: '#F79009', dark: '#B54708', darkest: '#7A2E0E', - contrastText: '#FFFFFF' -}); + contrastText: '#FFFFFF', +}) export const error = withAlphas({ lightest: '#FEF3F2', @@ -66,5 +66,5 @@ export const error = withAlphas({ main: '#F04438', dark: '#B42318', darkest: '#7A271A', - contrastText: '#FFFFFF' -}); + contrastText: '#FFFFFF', +}) diff --git a/console/client/src/theme/create-shadows.js b/console/client/src/theme/create-shadows.js index 22d70a5dab..345f151eb7 100644 --- a/console/client/src/theme/create-shadows.js +++ b/console/client/src/theme/create-shadows.js @@ -24,6 +24,6 @@ export const createShadows = () => { '0px 8px 40px rgba(0, 0, 0, 0.08)', '0px 8px 42px rgba(0, 0, 0, 0.08)', '0px 9px 44px rgba(0, 0, 0, 0.08)', - '0px 9px 46px rgba(0, 0, 0, 0.08)' - ]; -}; + '0px 9px 46px rgba(0, 0, 0, 0.08)', + ] +} diff --git a/console/client/src/theme/create-typography.js b/console/client/src/theme/create-typography.js index 1bc601ae67..c2eaae9147 100644 --- a/console/client/src/theme/create-typography.js +++ b/console/client/src/theme/create-typography.js @@ -1,76 +1,77 @@ export const createTypography = () => { return { - fontFamily: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"', + fontFamily: + '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"', body1: { fontSize: '1rem', fontWeight: 400, - lineHeight: 1.5 + lineHeight: 1.5, }, body2: { fontSize: '0.875rem', fontWeight: 400, - lineHeight: 1.57 + lineHeight: 1.57, }, button: { - fontWeight: 600 + fontWeight: 600, }, caption: { fontSize: '0.75rem', fontWeight: 500, - lineHeight: 1.66 + lineHeight: 1.66, }, subtitle1: { fontSize: '1rem', fontWeight: 500, - lineHeight: 1.57 + lineHeight: 1.57, }, subtitle2: { fontSize: '0.875rem', fontWeight: 500, - lineHeight: 1.57 + lineHeight: 1.57, }, overline: { fontSize: '0.75rem', fontWeight: 600, letterSpacing: '0.5px', lineHeight: 2.5, - textTransform: 'uppercase' + textTransform: 'uppercase', }, h1: { - fontFamily: '\'Plus Jakarta Sans\', sans-serif', + fontFamily: "'Plus Jakarta Sans', sans-serif", fontWeight: 700, fontSize: '3.5rem', - lineHeight: 1.2 + lineHeight: 1.2, }, h2: { - fontFamily: '\'Plus Jakarta Sans\', sans-serif', + fontFamily: "'Plus Jakarta Sans', sans-serif", fontWeight: 700, fontSize: '3rem', - lineHeight: 1.2 + lineHeight: 1.2, }, h3: { - fontFamily: '\'Plus Jakarta Sans\', sans-serif', + fontFamily: "'Plus Jakarta Sans', sans-serif", fontWeight: 700, fontSize: '2.25rem', - lineHeight: 1.2 + lineHeight: 1.2, }, h4: { - fontFamily: '\'Plus Jakarta Sans\', sans-serif', + fontFamily: "'Plus Jakarta Sans', sans-serif", fontWeight: 700, fontSize: '2rem', - lineHeight: 1.2 + lineHeight: 1.2, }, h5: { - fontFamily: '\'Plus Jakarta Sans\', sans-serif', + fontFamily: "'Plus Jakarta Sans', sans-serif", fontWeight: 700, fontSize: '1.5rem', - lineHeight: 1.2 + lineHeight: 1.2, }, h6: { - fontFamily: '\'Plus Jakarta Sans\', sans-serif', + fontFamily: "'Plus Jakarta Sans', sans-serif", fontWeight: 700, fontSize: '1.125rem', - lineHeight: 1.2 - } - }; -}; + lineHeight: 1.2, + }, + } +} diff --git a/console/client/tsconfig.json b/console/client/tsconfig.json index 194460db0f..1d90f677e8 100644 --- a/console/client/tsconfig.json +++ b/console/client/tsconfig.json @@ -1,11 +1,7 @@ { "compilerOptions": { "target": "es6", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], + "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "esModuleInterop": true, @@ -21,7 +17,5 @@ "noEmit": true, "jsx": "react-jsx" }, - "include": [ - "src/**/*" - ] + "include": ["src/**/*"] }