diff --git a/client/src/Routes.tsx b/client/src/Routes.tsx index 3aea4e1..21f011e 100644 --- a/client/src/Routes.tsx +++ b/client/src/Routes.tsx @@ -11,6 +11,7 @@ import { StartPage, } from "./app"; import { CatalogLayout, CatalogList } from "./app/catalog"; +import { DashboardPage } from "./app/dashboard"; import { QuotesLayout } from "./app/quotes/layout"; import { QuotesList } from "./app/quotes/list"; import { ProtectedRoute } from "./components"; @@ -26,6 +27,14 @@ export const Routes = () => { // Define routes accessible only to authenticated users const routesForAuthenticatedOnly = [ + { + path: "/home", + element: ( + + + + ), + }, { path: "/catalog", element: ( diff --git a/client/src/app/auth/LoginPage.tsx b/client/src/app/auth/LoginPage.tsx index cc50426..c7b7e65 100644 --- a/client/src/app/auth/LoginPage.tsx +++ b/client/src/app/auth/LoginPage.tsx @@ -88,25 +88,19 @@ export const LoginPage = () => {
diff --git a/client/src/app/quotes/list.tsx b/client/src/app/quotes/list.tsx index 72a61b1..b11f3c8 100644 --- a/client/src/app/quotes/list.tsx +++ b/client/src/app/quotes/list.tsx @@ -1,49 +1,9 @@ import { DataTableProvider } from "@/lib/hooks"; -import { - ChevronLeft, - ChevronRight, - Copy, - CreditCard, - File, - ListFilter, - MoreVertical, - Truck, -} from "lucide-react"; import { Trans } from "react-i18next"; import { QuotesDataTable } from "./components"; -import { - Badge, - Button, - Card, - CardContent, - CardDescription, - CardFooter, - CardHeader, - CardTitle, - DropdownMenu, - DropdownMenuCheckboxItem, - DropdownMenuContent, - DropdownMenuItem, - DropdownMenuLabel, - DropdownMenuSeparator, - DropdownMenuTrigger, - Pagination, - PaginationContent, - PaginationItem, - Progress, - Separator, - Table, - TableBody, - TableCell, - TableHead, - TableHeader, - TableRow, - Tabs, - TabsContent, - TabsList, - TabsTrigger, -} from "@/ui"; +import { Button } from "@/ui"; +import { t } from "i18next"; import { useNavigate } from "react-router-dom"; export const QuotesList = () => { @@ -58,386 +18,12 @@ export const QuotesList = () => {

descripción

+
+ +
- -
-
-
- - - Tus Cotizaciones - - Introducing Our Dynamic Orders Dashboard for Seamless Management and Insightful - Analysis. - - - - - - - - - This Week - $1,329 - - -
+25% from last week
-
- - - -
- - - This Month - $5,329 - - -
+10% from last month
-
- - - -
-
- -
- - Week - Month - Year - -
- - - - - - Filter by - - Fulfilled - Declined - Refunded - - - -
-
- - - - Orders - Recent orders from your store. - - - - - - Customer - Type - Status - Date - Amount - - - - - -
Liam Johnson
-
- liam@example.com -
-
- Sale - - - Fulfilled - - - 2023-06-23 - $250.00 -
- - -
Olivia Smith
-
- olivia@example.com -
-
- Refund - - - Declined - - - 2023-06-24 - $150.00 -
- - -
Noah Williams
-
- noah@example.com -
-
- Subscription - - - Fulfilled - - - 2023-06-25 - $350.00 -
- - -
Emma Brown
-
- emma@example.com -
-
- Sale - - - Fulfilled - - - 2023-06-26 - $450.00 -
- - -
Liam Johnson
-
- liam@example.com -
-
- Sale - - - Fulfilled - - - 2023-06-23 - $250.00 -
- - -
Liam Johnson
-
- liam@example.com -
-
- Sale - - - Fulfilled - - - 2023-06-23 - $250.00 -
- - -
Olivia Smith
-
- olivia@example.com -
-
- Refund - - - Declined - - - 2023-06-24 - $150.00 -
- - -
Emma Brown
-
- emma@example.com -
-
- Sale - - - Fulfilled - - - 2023-06-26 - $450.00 -
-
-
-
-
-
-
-
-
- - -
- - Order Oe31b70H - - - Date: November 23, 2023 -
-
- - - - - - - Edit - Export - - Trash - - -
-
- -
-
Order Details
-
    -
  • - - Glimmer Lamps x 2 - - $250.00 -
  • -
  • - - Aqua Filters x 1 - - $49.00 -
  • -
- -
    -
  • - Subtotal - $299.00 -
  • -
  • - Shipping - $5.00 -
  • -
  • - Tax - $25.00 -
  • -
  • - Total - $329.00 -
  • -
-
- -
-
-
Shipping Information
-
- Liam Johnson - 1234 Main St. - Anytown, CA 12345 -
-
-
-
Billing Information
-
Same as shipping address
-
-
- -
-
Customer Information
-
-
-
Customer
-
Liam Johnson
-
-
-
Email
-
- liam@acme.com -
-
-
-
Phone
-
- +1 234 567 890 -
-
-
-
- -
-
Payment Information
-
-
-
- - Visa -
-
**** **** **** 4532
-
-
-
-
- -
- Updated -
- - - - - - - - - - -
-
-
-
); }; diff --git a/client/src/components/Forms/FormErrorMessage.tsx b/client/src/components/Forms/FormErrorMessage.tsx index 9c43781..b74051a 100644 --- a/client/src/components/Forms/FormErrorMessage.tsx +++ b/client/src/components/Forms/FormErrorMessage.tsx @@ -19,8 +19,6 @@ export const FormErrorMessage = React.forwardRef< } } - console.log(message); - return ( {message} diff --git a/client/src/components/Layout/LayoutHeader.tsx b/client/src/components/Layout/LayoutHeader.tsx index 7e948c2..20fa9c9 100644 --- a/client/src/components/Layout/LayoutHeader.tsx +++ b/client/src/components/Layout/LayoutHeader.tsx @@ -9,12 +9,15 @@ import { UserButton } from "./components/UserButton"; export const LayoutHeader = () => { return ( -
+