fix(core): ai related copywritting fix (#6766)

This commit is contained in:
CatsJuice
2024-05-06 03:57:04 +00:00
parent 625249ca5b
commit 4aa7cafda3
5 changed files with 71 additions and 7 deletions

View File

@@ -26,6 +26,7 @@ export type FlexWrapperProps = {
wrap?: boolean;
flexShrink?: CSSProperties['flexShrink'];
flexGrow?: CSSProperties['flexGrow'];
gap?: CSSProperties['gap'];
};
// Sometimes we just want to wrap a component with a div to set flex or other styles, but we don't want to create a new component for it.
@@ -88,6 +89,7 @@ export const FlexWrapper = styled(Wrapper, {
'flexDirection',
'flexShrink',
'flexGrow',
'gap',
].includes(prop as string);
},
})<FlexWrapperProps>(({
@@ -97,6 +99,7 @@ export const FlexWrapper = styled(Wrapper, {
flexDirection,
flexShrink,
flexGrow,
gap,
}) => {
return {
display: 'flex',
@@ -106,6 +109,7 @@ export const FlexWrapper = styled(Wrapper, {
flexDirection,
flexShrink,
flexGrow,
gap,
};
});