Skip to content

Commit

Permalink
Added submission description text
Browse files Browse the repository at this point in the history
  • Loading branch information
hqasmei committed Jul 22, 2024
1 parent ebb3c88 commit c8b0c17
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/_components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export function Header() {
open={isSubimtOpen}
setOpen={setIsSubimtOpen}
header="Submit a portfolio"
description='Allow up to 24 hours for review and addition to our curated collection.'
>
<SubmissionForm setOpen={setIsSubimtOpen} />
</ResponsiveDialog>
Expand Down
8 changes: 8 additions & 0 deletions src/components/responsive-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ import * as React from 'react';
import {
Dialog,
DialogContent,
DialogDescription,
DialogHeader,
DialogTitle,
} from '@/components/ui/dialog';
import {
Drawer,
DrawerContent,
DrawerDescription,
DrawerHeader,
DrawerTitle,
} from '@/components/ui/drawer';
Expand All @@ -18,11 +20,13 @@ export function ResponsiveDialog({
open,
setOpen,
header,
description,
children,
}: {
open: boolean;
setOpen: (open: boolean) => void;
header: string;
description?: string;
children: React.ReactNode;
}) {
const { isMobile } = useMediaQuery();
Expand All @@ -33,6 +37,9 @@ export function ResponsiveDialog({
<DrawerContent>
<DrawerHeader className="text-left">
<DrawerTitle>{header}</DrawerTitle>
{description && (
<DrawerDescription>{description}</DrawerDescription>
)}
</DrawerHeader>
{children}
</DrawerContent>
Expand All @@ -45,6 +52,7 @@ export function ResponsiveDialog({
<DialogContent className="sm:max-w-[425px]">
<DialogHeader>
<DialogTitle>{header}</DialogTitle>
{description && <DialogDescription>{description}</DialogDescription>}
</DialogHeader>
{children}
</DialogContent>
Expand Down

0 comments on commit c8b0c17

Please sign in to comment.