The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
chore: add explicit return type to getBackgroundColor (#18878)
Charles Bochet69fe6fcadd3c
diff --git a/.github/workflows/ci-ui.yaml b/.github/workflows/ci-ui.yamlindex 1945be4a670..4dbc02c5a4c 100644--- a/.github/workflows/ci-ui.yaml+++ b/.github/workflows/ci-ui.yaml@@ -79,6 +79,8 @@ jobs:fetch-depth: 10- name: Install dependenciesuses: ./.github/actions/yarn-install+ - name: Build dependencies+ run: npx nx build twenty-shared- name: Download storybook builduses: actions/download-artifact@v4with:diff --git a/packages/twenty-ui/src/testing/decorators/ComponentDecorator.tsx b/packages/twenty-ui/src/testing/decorators/ComponentDecorator.tsxindex 966f74cb112..6e24cd0d545 100644--- a/packages/twenty-ui/src/testing/decorators/ComponentDecorator.tsx+++ b/packages/twenty-ui/src/testing/decorators/ComponentDecorator.tsx@@ -4,7 +4,10 @@ import { themeCssVariables } from '@ui/theme-constants';import { ComponentStorybookLayout } from '../ComponentStorybookLayout';-const getBackgroundColor = (inverted: boolean, accent: string) => {+const getBackgroundColor = (+ inverted: boolean,+ accent: string,+): string | undefined => {if (!inverted) return undefined;switch (accent) {