The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix incorrect Scalar CSS import (#10763)
Félix Malfaite5a7aab73309
diff --git a/packages/twenty-front/.env.example b/packages/twenty-front/.env.exampleindex c1203ab9003..7189638115d 100644--- a/packages/twenty-front/.env.example+++ b/packages/twenty-front/.env.example@@ -1,6 +1,5 @@REACT_APP_SERVER_BASE_URL=http://localhost:3000-GENERATE_SOURCEMAP=false-TRANSLATION_IO_API_KEY=xxx+VITE_BUILD_SOURCEMAP=false# ———————— Optional ————————diff --git a/packages/twenty-front/src/modules/settings/playground/components/RestPlayground.tsx b/packages/twenty-front/src/modules/settings/playground/components/RestPlayground.tsxindex bc1d0f9f7ff..4ef48160a59 100644--- a/packages/twenty-front/src/modules/settings/playground/components/RestPlayground.tsx+++ b/packages/twenty-front/src/modules/settings/playground/components/RestPlayground.tsx@@ -16,9 +16,12 @@ const StyledContainer = styled.div``;const ApiReferenceReact = lazy(() =>- import('@scalar/api-reference-react').then((module) => ({- default: module.ApiReferenceReact,- })),+ import('@scalar/api-reference-react').then((module) => {+ import('@scalar/api-reference-react/style.css');+ return {+ default: module.ApiReferenceReact,+ };+ }),);type RestPlaygroundProps = {diff --git a/packages/twenty-front/src/modules/ui/layout/fullscreen/components/FullScreenContainer.tsx b/packages/twenty-front/src/modules/ui/layout/fullscreen/components/FullScreenContainer.tsxindex fa707c93c18..f4f00ec6b5f 100644--- a/packages/twenty-front/src/modules/ui/layout/fullscreen/components/FullScreenContainer.tsx+++ b/packages/twenty-front/src/modules/ui/layout/fullscreen/components/FullScreenContainer.tsx@@ -5,7 +5,6 @@ import {} from '@/ui/navigation/bread-crumb/components/Breadcrumb';import styled from '@emotion/styled';import { useLingui } from '@lingui/react/macro';-import '@scalar/api-reference-react/style.css';import { IconButton, IconX, useIsMobile } from 'twenty-ui';type FullScreenContainerProps = {