-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove text input for support, misc formatting
- Loading branch information
Showing
2 changed files
with
34 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,37 @@ | ||
"use client"; | ||
'use client'; | ||
|
||
import { useState } from "react"; | ||
import { Button } from "@/components/ui/button"; | ||
import { Textarea } from "@/components/ui/textarea"; | ||
import { | ||
Card, | ||
CardContent, | ||
CardDescription, | ||
CardFooter, | ||
CardHeader, | ||
CardTitle, | ||
} from "@/components/ui/card"; | ||
} from '@/components/ui/card'; | ||
|
||
interface SupportFormProps { | ||
user: { | ||
id: string; | ||
email: string; | ||
}; | ||
} | ||
|
||
function SupportForm({ user }: SupportFormProps) { | ||
const [message, setMessage] = useState(""); | ||
|
||
const handleSubmit = () => { | ||
// Implement support message submission logic | ||
console.log("Submitting support message:", message); | ||
}; | ||
|
||
return ( | ||
<Card className="bg-card text-card-foreground"> | ||
<CardHeader> | ||
<CardTitle className="text-primary">Contact Support</CardTitle> | ||
<CardDescription> | ||
Send us a message and we'll get back to you as soon as possible. | ||
</CardDescription> | ||
</CardHeader> | ||
<CardContent className="space-y-4"> | ||
<Textarea | ||
placeholder="Describe your issue or question" | ||
value={message} | ||
onChange={(e) => setMessage(e.target.value)} | ||
className="bg-input text-foreground" | ||
rows={5} | ||
/> | ||
</CardContent> | ||
<CardFooter className="flex justify-start pt-6"> | ||
<Button | ||
onClick={handleSubmit} | ||
className="bg-primary text-primary-foreground hover:bg-primary/90" | ||
> | ||
Send Message | ||
</Button> | ||
</CardFooter> | ||
</Card> | ||
); | ||
} | ||
|
||
interface User { | ||
id: string; | ||
email: string; | ||
// Add other user properties as needed | ||
} | ||
|
||
export function SupportSettings({ user }: { user: User }) { | ||
export function SupportSettings() { | ||
return ( | ||
<div className="space-y-4"> | ||
<h2 className="text-3xl font-bold text-primary">Contact Support</h2> | ||
<SupportForm user={user} /> | ||
<Card className="bg-card text-card-foreground"> | ||
<CardHeader> | ||
<CardTitle className="text-primary">Need Help?</CardTitle> | ||
<CardDescription> | ||
{`We're here to assist you with any questions or issues you may | ||
have.`} | ||
</CardDescription> | ||
</CardHeader> | ||
<CardContent className="space-y-4"> | ||
<p> | ||
For support, please email us at:{' '} | ||
<a | ||
href="mailto:[email protected]" | ||
className="text-primary hover:underline" | ||
> | ||
[email protected] | ||
</a> | ||
</p> | ||
</CardContent> | ||
</Card> | ||
</div> | ||
); | ||
} |