From cbf0336cd0b833666550d30097ca385564612c33 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Sat, 25 May 2024 07:36:06 +0530 Subject: [PATCH] More --- web/packages/shared/themes/components.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/web/packages/shared/themes/components.ts b/web/packages/shared/themes/components.ts index 64659b364..d6922981a 100644 --- a/web/packages/shared/themes/components.ts +++ b/web/packages/shared/themes/components.ts @@ -72,14 +72,14 @@ export const getComponents = ( }, MuiLink: { defaultProps: { - color: colors.accent.A500, + color: colors.accent?.A500, underline: "none", }, styleOverrides: { root: { "&:hover": { underline: "always", - color: colors.accent.A500, + color: colors.accent?.A500, }, }, }, @@ -95,8 +95,8 @@ export const getComponents = ( borderRadius: "4px", textTransform: "none", fontWeight: "bold", - fontSize: typography.body.fontSize, - lineHeight: typography.body.lineHeight, + fontSize: typography.body?.fontSize, + lineHeight: typography.body?.lineHeight, }, startIcon: { marginRight: "12px", @@ -212,16 +212,16 @@ function getIconColor( switch (ownerState.color) { case "primary": return { - color: colors.stroke.base, + color: colors.stroke?.base, }; case "secondary": return { - color: colors.stroke.muted, + color: colors.stroke?.muted, }; } if (ownerState.disabled) { return { - color: colors.stroke.faint, + color: colors.stroke?.faint, }; } return {};