diff options
| author | Stanisław Zagórowski <hasohasacz@gmail.com> | 2023-11-06 15:37:42 +0100 |
|---|---|---|
| committer | Stanisław Zagórowski <hasohasacz@gmail.com> | 2023-11-06 15:37:42 +0100 |
| commit | 6fd24189446386b5df8846a35fd108a91c7257a5 (patch) | |
| tree | 74906d65e1a8aa9e9f8a62d52cf9994d59adab9c /front/src/components/animated_bg.tsx | |
| parent | 3034029dc4bac2838cd975f7ff2558280a46d1de (diff) | |
change typing on timeLoop
Diffstat (limited to 'front/src/components/animated_bg.tsx')
| -rw-r--r-- | front/src/components/animated_bg.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/front/src/components/animated_bg.tsx b/front/src/components/animated_bg.tsx index 80a8a63..b5fdbb0 100644 --- a/front/src/components/animated_bg.tsx +++ b/front/src/components/animated_bg.tsx @@ -1,6 +1,6 @@ import { Shaders, Node, GLSL } from "gl-react"; import { Surface } from "gl-react-dom"; -import React from "preact/compat"; +import React, { FunctionComponent } from "preact/compat"; import { PropsWithChildren } from "preact/compat"; const shaders = Shaders.create({ @@ -88,7 +88,7 @@ const AnimatedBgInternal = ({ tick }: { tick: number }) => { // // accepts a JSX component as an argument const timeLoop = ( - C: (props: PropsWithChildren<{ tick: number }>) => React.JSX.Element, + C: FunctionComponent<PropsWithChildren<{ tick: number }>>, { refreshRate }: { refreshRate: number } ) => { return class TimeLoop extends React.Component { |
