Skip to content

Commit c1edfc2

Browse files
committed
fix: remove problematic iconStyles function calls causing build errors
Remove iconStyles.calculate, iconStyles.cloud, and iconStyles.group function calls that were causing "length is outside of buffer bounds" errors during Gatsby SSR build. These dynamic style functions are not available during static site generation.
1 parent e4ab699 commit c1edfc2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • src/components/Pricing/PricingAddons

src/components/Pricing/PricingAddons/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ export const PricingAddons = ({ isYearly = false, setIsYearly, enterprisePlan })
6666
secondaryFill={theme?.palette?.background?.inverse || "#eee"}
6767
/>;
6868
case "cloud":
69-
return <Cloud sx={iconStyles.cloud(theme)} />;
69+
return <Cloud />;
7070
case "group":
71-
return <Group sx={iconStyles.group(theme)} />;
71+
return <Group />;
7272
default:
7373
return null;
7474
}
@@ -207,7 +207,7 @@ export const PricingAddons = ({ isYearly = false, setIsYearly, enterprisePlan })
207207
sx={cardStyles.main}
208208
>
209209
<CardHeader
210-
avatar={<Calculate color="primary" sx={iconStyles.calculate(theme)} />}
210+
avatar={<Calculate color="primary" />}
211211
title={
212212
<Box sx={boxStyles.cardHeaderTitle}>
213213
<Typography variant="h5" component="h3" fontWeight="bold" sx={typographyStyles.headerTitle}>

0 commit comments

Comments
 (0)