mirror of
https://github.com/twentyhq/twenty
synced 2026-04-21 13:37:22 +00:00
chore: add explicit return type to getBackgroundColor (#18878)
Trivial typing improvement to trigger CI Front + CI UI visual regression pipelines.
This commit is contained in:
parent
0ded15b363
commit
69fe6fcadd
2 changed files with 6 additions and 1 deletions
2
.github/workflows/ci-ui.yaml
vendored
2
.github/workflows/ci-ui.yaml
vendored
|
|
@ -79,6 +79,8 @@ jobs:
|
|||
fetch-depth: 10
|
||||
- name: Install dependencies
|
||||
uses: ./.github/actions/yarn-install
|
||||
- name: Build dependencies
|
||||
run: npx nx build twenty-shared
|
||||
- name: Download storybook build
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue