Skip to content

Commit

Permalink
fix: createInterpolation test
Browse files Browse the repository at this point in the history
  • Loading branch information
ssong10 committed Jul 8, 2024
1 parent 0a0d978 commit 542edcb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useMemo } from 'react';
import type { CurrentTheme } from '@vibrant-ui/theme';
import { isDefined, isRecord } from '@vibrant-ui/utils';
import type { SystemProp } from '../createSystemProp';
Expand Down Expand Up @@ -49,7 +48,7 @@ export const createInterpolation = (systemProps: SystemProp[], defaultProps: any
};

return ({ theme, props }: { theme: CurrentTheme; props: Record<string, any> }) => {
const interpolationResult = useMemo(() => childInterpolation({ ...defaultProps, ...props }, theme), [props, theme]);
const interpolationResult = childInterpolation({ ...defaultProps, ...props }, theme);

return useBuildStyle({ styleObjects: interpolationResult, theme });
};
Expand Down

0 comments on commit 542edcb

Please sign in to comment.