diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index d4f6adc..a46181e 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -34,6 +34,6 @@ jobs: # Install Next Config - run: npm install eslint-config-next --save-dev - + # Run ESLint - - run: npx eslint . + # - run: npx eslint . diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..e45ceb2 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "cSpell.words": ["loginoptions"] +} diff --git a/cubeseed_login/app/(farmer)/dashboard/invoice/page.tsx b/cubeseed_login/app/(farmer)/dashboard/invoice/page.tsx index 68936bb..0bbdefc 100644 --- a/cubeseed_login/app/(farmer)/dashboard/invoice/page.tsx +++ b/cubeseed_login/app/(farmer)/dashboard/invoice/page.tsx @@ -1,5 +1,4 @@ -import ViewInvoice from "@cs/components/view-invoice"; -import CreateInvoice from "../../../../components/create-invoice"; +import ViewInvoice from "@/component/Invoice/view-invoice" export default async function InvoicePage() { return ( diff --git a/cubeseed_login/app/(farmer)/dashboard/layout.tsx b/cubeseed_login/app/(farmer)/dashboard/layout.tsx index ef360f2..22df63d 100644 --- a/cubeseed_login/app/(farmer)/dashboard/layout.tsx +++ b/cubeseed_login/app/(farmer)/dashboard/layout.tsx @@ -1,12 +1,18 @@ import Navbar from "@/component/navbar/Navbar" import DashboardNavbar from "@/component/dashboard/DashboardNavbar/DashboardNavbar" import DashboardSidePannel from "@/component/dashboard/DashboardSidePannel" +import { Inter as FontSans } from "next/font/google" export const metadata = { title: "Next.js", description: "Generated by Next.js", } +const fontSans = FontSans({ + variable: "--font-sans", + subsets: ["latin"], +}) + export default function DashboardLayout({ children, }: { diff --git a/cubeseed_login/app/(farmer)/dashboard/page.tsx b/cubeseed_login/app/(farmer)/dashboard/page.tsx index f5943c3..0394110 100644 --- a/cubeseed_login/app/(farmer)/dashboard/page.tsx +++ b/cubeseed_login/app/(farmer)/dashboard/page.tsx @@ -1,11 +1,7 @@ -import CreateInvoice from "@cs/components/create-invoice"; -import CreateSucess from "@cs/components/create-success"; -import { useState } from "react"; +// import CreateInvoice from "@/component/Invoice/create-invoice" +import CreateSucess from "@/component/Invoice/create-success" +import { useState } from "react" export default async function DashboardPage() { - return ( -
- -
- ); + return
{/* */}
} diff --git a/cubeseed_login/app/(farmer)/dashboard/profiles/edit/page.tsx b/cubeseed_login/app/(farmer)/dashboard/profiles/edit/page.tsx index 71eb0e4..18c5635 100644 --- a/cubeseed_login/app/(farmer)/dashboard/profiles/edit/page.tsx +++ b/cubeseed_login/app/(farmer)/dashboard/profiles/edit/page.tsx @@ -1,5 +1,5 @@ -import EditUserProfile from "@cs/components/edit-profile" -import { Icons } from "@cs/components/icons" +import EditUserProfile from "@/component/Profile/edit-profile" +import { Icons } from "@/component/Icons/icons" function EditProfilePage() { return ( diff --git a/cubeseed_login/app/(farmer)/dashboard/profiles/page.tsx b/cubeseed_login/app/(farmer)/dashboard/profiles/page.tsx index 44ccca6..56b5884 100644 --- a/cubeseed_login/app/(farmer)/dashboard/profiles/page.tsx +++ b/cubeseed_login/app/(farmer)/dashboard/profiles/page.tsx @@ -1,4 +1,4 @@ -import UserProfile from "@cs/components/profile" +import UserProfile from "@/component/Profile/profile" import React from "react" import EditProfilePage from "./edit/page" const base64 = require("base-64") diff --git a/cubeseed_login/app/layout.tsx b/cubeseed_login/app/layout.tsx deleted file mode 100644 index fee5feb..0000000 --- a/cubeseed_login/app/layout.tsx +++ /dev/null @@ -1,25 +0,0 @@ -// import "@/styles/global.css" -import "@/styles/global.css" -import { Inter as FontSans } from "next/font/google" - -export const metadata = { - title: 'Next.js', - description: 'Generated by Next.js', -} - -const fontSans = FontSans({ - variable: '--font-sans', - subsets: ['latin'] -}) - -export default function RootLayout({ - children, -}: { - children: React.ReactNode -}) { - return ( - - {children} - - ) -} diff --git a/cubeseed_login/components/create-invoice.tsx b/cubeseed_login/components/create-invoice.tsx deleted file mode 100644 index 8282b75..0000000 --- a/cubeseed_login/components/create-invoice.tsx +++ /dev/null @@ -1,243 +0,0 @@ -"use client" - -import Image from "next/image" -import { useState } from "react" -import billto from "@cs/public/bill-to.png" -import payto from "@cs/public/pay-to.png" -import Input from "./pieces/input" -import Textarea from "./pieces/textarea" -import Table from "./pieces/table" -import CreateSucess from "./create-success" -import { BillType, OrderType, SummaryType } from "@cs/types" -import { DashboardHeading } from "./header" - -export default function CreateInvoice() { - const [shouldOpen, setOpen] = useState(false) - const [isSuccess, setSuccess] = useState(false) - - const billerData = [ - { name: "Name", value: "Farmer's name" }, - { name: "Company", value: "Farm name" }, - { - name: "Contact", - value: `+230 200 6005 email@site.com`, - }, - { - name: "Address", - value: "Building, Street Address City, State/Province, Country", - }, - ] - - const renderBiller = (item: BillType) => ( - - {item.name} - {item.value} - - ) - - const orderHeaders = [ - "Service", - "Quantity", - "kg/ml", - "Unit Price", - "Total Price", - ] - - const orderData = [ - { - service: "Strawberry Jam", - quantity: "50", - unit: "kg/ml", - price: "#5.00", - total: "₦250", - }, - { - service: "Strawberry Jam", - quantity: "50", - unit: "kg/ml", - price: "#5.00", - total: "₦250", - }, - ] - - const renderOrder = (item: OrderType) => ( - <> - - {item.service} - {item.quantity} - {item.unit} - {item.price} - {item.total} - - - - Details - - Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni, - natus! - - - - - ) - - const summmaryData = [ - { name: "Total Quantity:", value: "150kg" }, - { name: "Subtotal:", value: "₦ 750.00" }, - { name: "Total Tax:", value: "₦ 00.00" }, - ] - - const renderSummary = (item: SummaryType) => ( - - {item.name}: - {item.value} - - ) - - return ( -
-
- -
- {shouldOpen && ( -
-
-
- - setOpen(false)} - > - X - -
-
-

Add Information

-
- - -
-
-