Skip to content

Commit c9504fd

Browse files
committed
fix example import
1 parent bf2fea7 commit c9504fd

File tree

1 file changed

+3
-3
lines changed
  • examples/3d-cubes/src/components

1 file changed

+3
-3
lines changed

examples/3d-cubes/src/components/Face.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { use3dTransformations } from 'react-css-transform';
1+
import { merge3dMatrixWithStyles, use3dTransformations } from 'react-css-transform';
22
import { useGlobalContext } from './GlobalContext';
33
import { useFlatShading } from '../useFlatShading';
44
import { vec3 } from 'gl-matrix';
55
import { useMemo } from 'react';
6-
import { blendHex, mergeMatrixWithStyles } from '../utils';
6+
import { blendHex } from '../utils';
77

88
import type { CSSProperties } from 'react';
99
import type { Transform3dProps } from 'react-css-transform';
@@ -41,7 +41,7 @@ export const Face = ({ color, style, ...transform3dProps }: FaceProps) => {
4141
});
4242

4343
const faceStyle = useMemo(() => {
44-
return mergeMatrixWithStyles(matrixWorld.current, {
44+
return merge3dMatrixWithStyles(matrixWorld.current, {
4545
...style,
4646
backgroundColor: outputColorString,
4747
});

0 commit comments

Comments
 (0)