Fix for dynamic routes with app router SSR

This commit is contained in:
Nathan Chapman
2024-03-07 11:36:12 -06:00
parent 83ede65b5e
commit 9d8c110044
18 changed files with 327 additions and 229 deletions
+10 -2
View File
@@ -1,8 +1,16 @@
import classNames from 'classnames';
const Card = ({ children, className }: {children: React.ReactElement[], className: string}) => (
const Card = ({
children,
className,
}: {
children: React.ReactElement[];
className: string;
}) => (
<div className={classNames('max-w-xl', className)}>
<div className="bg-white shadow-md rounded-b-xl dark:bg-black">{children}</div>
<div className="bg-white shadow-md rounded-b-xl dark:bg-black">
{children}
</div>
</div>
);