mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 16:55:37 +02:00
✨ fix: Change up the /404 page
This commit is contained in:
@@ -24,13 +24,12 @@ export const ReactMotionComponent = ({
|
||||
class: className,
|
||||
...motionProps
|
||||
}: MotionComponentProps) => {
|
||||
const MotionTag = motion[as as keyof typeof motion];
|
||||
const MotionTag = motion[as as keyof typeof motion] as React.ComponentType<any>;
|
||||
|
||||
return (
|
||||
<MotionTag className={className}
|
||||
{...motionProps}
|
||||
// animate={isInView ? whileInView : undefined}
|
||||
>
|
||||
<MotionTag
|
||||
className={className}
|
||||
{...(motionProps as any)}>
|
||||
{children}
|
||||
</MotionTag>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user