refactor(helpdesk): replace inline hint with Alert in create ticket dialog
Use the shadcn Alert component for the file-sharing hint instead of a bare Message element. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
parent
9ec4555200
commit
931c60e234
1 changed files with 6 additions and 1 deletions
|
|
@ -26,6 +26,7 @@ import {
|
|||
type TicketPriority,
|
||||
} from "@/lib/tickets/ticketMeta";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { Alert } from "@/components/ui/alert";
|
||||
|
||||
function isTicketCategory(value: string): value is TicketCategory {
|
||||
return TICKET_CATEGORIES.some((option) => option.value === value);
|
||||
|
|
@ -200,7 +201,11 @@ export function CreateTicketDialog() {
|
|||
</div>
|
||||
|
||||
<div className="flex flex-col gap-1.5">
|
||||
<Message title="Please provide a description" message="Include what happened, what you expected, and any useful context." />
|
||||
<Alert variant="info" className="text-sm">
|
||||
<p>
|
||||
Need to share files or screenshots? You can upload them to a file sharing service and include the link in your description.
|
||||
</p>
|
||||
</Alert>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col gap-1.5">
|
||||
|
|
|
|||
Loading…
Reference in a new issue