Took 7 minutes
This commit is contained in:
parent
2b19fdf7bc
commit
328a2226d0
@ -77,11 +77,10 @@ export const generateMetadata = async ({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ slug: string[] }>;
|
||||
}): Promise<Metadata> => {
|
||||
}): Promise<Metadata | undefined> => {
|
||||
const slug: string = (((await params).slug as string[]) || undefined)?.join(
|
||||
"/"
|
||||
); // The slug of the content
|
||||
let embed: Metadata | undefined; // The content embed, if any
|
||||
if (slug) {
|
||||
const content: DocsContentMetadata | undefined = getDocsContent().find(
|
||||
(metadata: DocsContentMetadata): boolean => metadata.slug === slug
|
||||
@ -93,16 +92,6 @@ export const generateMetadata = async ({
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Return the page embed
|
||||
return (
|
||||
embed ||
|
||||
Embed({
|
||||
title: "Documentation",
|
||||
description:
|
||||
"Need help with Pulse App? You've come to the right place!",
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
export default DocsPage;
|
||||
|
@ -31,7 +31,7 @@ const SheetOverlay = React.forwardRef<
|
||||
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
||||
|
||||
const sheetVariants = cva(
|
||||
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-[450ms] data-[state=open]:duration-[450ms] data-[state=open]:animate-in data-[state=closed]:animate-out",
|
||||
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-[450ms] data-[state=open]:animate-in data-[state=closed]:animate-out",
|
||||
{
|
||||
variants: {
|
||||
side: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user