mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-24 14:53:52 +03:00
parent
65aa91c774
commit
66162e6693
@ -232,7 +232,7 @@ export const CompanyBoardCard = () => {
|
|||||||
</StyledCheckboxContainer>
|
</StyledCheckboxContainer>
|
||||||
</StyledBoardCardHeader>
|
</StyledBoardCardHeader>
|
||||||
<StyledBoardCardBody>
|
<StyledBoardCardBody>
|
||||||
<AnimatedEaseInOut isOpen={!showCompactView}>
|
<AnimatedEaseInOut isOpen={!showCompactView} initial={false}>
|
||||||
{visibleBoardCardFields.map((viewField) => (
|
{visibleBoardCardFields.map((viewField) => (
|
||||||
<PreventSelectOnClickContainer key={viewField.fieldMetadataId}>
|
<PreventSelectOnClickContainer key={viewField.fieldMetadataId}>
|
||||||
<FieldContext.Provider
|
<FieldContext.Provider
|
||||||
|
@ -9,6 +9,7 @@ type AnimatedEaseInOutProps = {
|
|||||||
duration?: AnimationDuration;
|
duration?: AnimationDuration;
|
||||||
marginBottom?: string;
|
marginBottom?: string;
|
||||||
marginTop?: string;
|
marginTop?: string;
|
||||||
|
initial?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const AnimatedEaseInOut = ({
|
export const AnimatedEaseInOut = ({
|
||||||
@ -17,11 +18,12 @@ export const AnimatedEaseInOut = ({
|
|||||||
marginBottom,
|
marginBottom,
|
||||||
marginTop,
|
marginTop,
|
||||||
duration = 'normal',
|
duration = 'normal',
|
||||||
|
initial = true,
|
||||||
}: AnimatedEaseInOutProps) => {
|
}: AnimatedEaseInOutProps) => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<AnimatePresence>
|
<AnimatePresence initial={initial}>
|
||||||
{isOpen && (
|
{isOpen && (
|
||||||
<motion.div
|
<motion.div
|
||||||
initial={{
|
initial={{
|
||||||
|
Loading…
Reference in New Issue
Block a user