From cd2d814227b61bb61d725c5aa9d6f83ee2379417 Mon Sep 17 00:00:00 2001 From: Kinfe123 Date: Sat, 1 Jun 2024 13:25:54 +0300 Subject: [PATCH] fix: removing unncessary comps --- .../farmui/FUIFaqsWithSearchBox.tsx | 115 ------------- apps/www/components/farmui/FUIForm.tsx | 159 ------------------ 2 files changed, 274 deletions(-) delete mode 100644 apps/www/components/farmui/FUIFaqsWithSearchBox.tsx delete mode 100644 apps/www/components/farmui/FUIForm.tsx diff --git a/apps/www/components/farmui/FUIFaqsWithSearchBox.tsx b/apps/www/components/farmui/FUIFaqsWithSearchBox.tsx deleted file mode 100644 index 2e8d2d1f..00000000 --- a/apps/www/components/farmui/FUIFaqsWithSearchBox.tsx +++ /dev/null @@ -1,115 +0,0 @@ - -import React from "react"; - -export default function FUIFaqsWithSearchBox() { - const faqsList = [ - { - q: "What are some random questions to ask?", - a: "That's exactly the reason we created this random question generator. There are hundreds of random questions to choose from so you're able to find the perfect random question.", - href: "javascript:void(0)", - }, - { - q: "Do you include common questions?", - a: "This generator doesn't include most common questions. The thought is that you can come up with common questions on your own so most of the questions in this generator.", - href: "javascript:void(0)", - }, - { - q: "Can I use this for 21 questions?", - a: "Yes! there are two ways that you can use this question generator depending on what you're after. You can indicate that you want 21 questions generated.", - href: "javascript:void(0)", - }, - { - q: "Are these questions for girls or for boys?", - a: "The questions in this generator are gender neutral and can be used to ask either male of females (or any other gender the person identifies with).", - href: "javascript:void(0)", - }, - { - q: "What do you wish you had more talent doing?", - a: "If you've been searching for a way to get random questions, you've landed on the correct webpage. We created the Random Question Generator to ask you as many random questions as your heart desires.", - href: "javascript:void(0)", - }, - ]; - - return ( -
- back bg - -
- -
-
-

- How can we help? -

-

- Everything you need to know about the product. Can’t find the answer - you’re looking for? feel free to{" "} - - contact us - - . -

-
e.preventDefault()} - className="mx-auto sm:mx-auto " - > -
- - -
-
-
- -
- -
-
-
- ); -} - diff --git a/apps/www/components/farmui/FUIForm.tsx b/apps/www/components/farmui/FUIForm.tsx deleted file mode 100644 index 69c6a62b..00000000 --- a/apps/www/components/farmui/FUIForm.tsx +++ /dev/null @@ -1,159 +0,0 @@ - -"use client"; - -import { - CardTitle, - CardDescription, - CardHeader, - CardContent, - CardFooter, - Card, -} from "@/components/ui/card"; -import { Label } from "@/components/ui/label"; -import { Input } from "@/components/ui/input"; -import { Textarea } from "@/components/ui/textarea"; -import { ChevronRight, Loader2 } from "lucide-react"; -import { useState, useTransition } from "react"; -import { useToast } from "@/components/ui/use-toast"; -// raplace it with your actions. -import { saySomething } from "actions/emailSubRelated"; -import {Button} from "@/components/ui/button"; -type FormType = { - firstName: string; - lastName?: string; - email: string; - message: string; -}; -export default function FUIForm() { - const [pending, startTransition] = useTransition(); - const { toast } = useToast() - - const [forms, setForms] = useState({ - firstName: "", - lastName: "", - email: "", - message: "", - }); - - const handleChange = (e: any) => { - setForms({ ...forms, [e.target.name]: e.target.value }); - }; - const onSubmit = (e:any) => { - e.preventDefault(); - startTransition(async () => { - saySomething({ - firstName: forms.firstName, - lastName: forms.lastName, - email: forms.email, - message: forms.message, - }) - .then((res) => { - toast({ - position: "bottom-left", - title: "Message submitted", - description: - "You have successfully submitted your message. we will keep in touch with you with the speed of light :)", - }); - setForms({ - firstName:"", - lastName:"", - email: "", - message: "" - }) - }) - .catch((err) => { - toast({ - position: "bottom-left", - - title: "Something went wrong", - description: - "There is an error while submitting the form, Please try again later :(", - variant: "destructive", - - }); - }); - }); - }; - return ( -
-
- - - - Fill out the form below and we'll get back to you as soon as - possible. - - - -
-
-
-
- - handleChange(e)} - name="firstName" - placeholder="Enter your first name" - required - /> -
-
- - -
-
-
- - -
-
- -