fix: Change up the /404 page

This commit is contained in:
Wanjohi
2024-09-05 17:33:46 +03:00
parent e2e5497c62
commit 2e26ed08a1
3 changed files with 17 additions and 346 deletions

View File

@@ -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>
);