fix: fix storybook build script not found by Chromatic (#5235)

This commit is contained in:
Thaïs
2024-05-02 16:15:36 +02:00
committed by GitHub
parent f802964de4
commit 5128ea3ffb
12 changed files with 147 additions and 80 deletions

View File

@ -43,7 +43,7 @@ export const RightDrawerEmailThread = () => {
useRegisterClickOutsideListenerCallback({
callbackId:
'EmailThreadClickOutsideCallBack-' + thread.id ?? 'no-thread-id',
'EmailThreadClickOutsideCallBack-' + (thread.id ?? 'no-thread-id'),
callbackFunction: useRecoilCallback(
({ set }) =>
() => {

View File

@ -97,9 +97,7 @@ export const usePrepareFindManyActivitiesQuery = () => {
};
const filteredActivities = [
...activities.filter(
(activity) => !shouldActivityBeExcluded?.(activity) ?? true,
),
...activities.filter((activity) => !shouldActivityBeExcluded?.(activity)),
].sort((a, b) => {
return a.createdAt > b.createdAt ? -1 : 1;
});

View File

@ -31,7 +31,7 @@ const meta: Meta = {
fieldDefinition: {
fieldMetadataId: 'phone',
label: 'Phone',
type: FieldMetadataType.Text,
type: FieldMetadataType.Phone,
iconName: 'IconPhone',
metadata: {
fieldName: 'phone',

View File

@ -45,7 +45,7 @@ const PhoneFieldInputWithContext = ({
fieldDefinition={{
fieldMetadataId: 'phone',
label: 'Phone',
type: FieldMetadataType.Text,
type: FieldMetadataType.Phone,
iconName: 'IconPhone',
metadata: {
fieldName: 'phone',

View File

@ -1,5 +1,5 @@
import React from 'react';
import { useTheme } from '@emotion/react';
import { css, useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { IconComponent } from 'twenty-ui';
@ -87,10 +87,13 @@ const StyledButton = styled.button<
`;
}}
&:hover {
background: ${({ theme, isActive }) =>
!!isActive ?? theme.background.transparent.lighter};
}
${({ theme, isActive }) =>
isActive &&
css`
&:hover {
background: ${theme.background.transparent.lighter};
}
`}
&:active {
background: ${({ theme, disabled }) =>