bunch of fixes

This commit is contained in:
2025-01-21 17:18:32 -05:00
parent f0ed5ab8bb
commit 1a59ac8373
12 changed files with 40 additions and 39 deletions

View File

@@ -6,7 +6,7 @@ import styles from '../styles.module.css';
import PageHero from "@components/PageHero";
import { Suspense } from "react";
import Loading from "@src/app/components/Loading/loading";
import Loading from "@src/components/Loading/loading";
import Link from "next/link";
export default async function AccountsTable( props: any ) {
@@ -70,7 +70,7 @@ export default async function AccountsTable( props: any ) {
<tr key={item.uuid}>
<td className="whitespace-wrap flex items-center py-4 pl-4 pr-3 text-xs font-medium text-gray-900 ">
<Link href={`/userProfile/${item.uuid}`}><span className="pl-2"> {item.first_name}</span></Link>
<Link href={`/UserProfile/${item.uuid}`}><span className="pl-2"> {item.first_name}</span></Link>
</td>
<td className="whitespace-nowrap px-3 py-4 text-xs text-gray-900">
{item.last_name}

View File

@@ -1,10 +1,10 @@
"use client";
import { FC, useState } from "react";
import { brandType } from "src/types/brandType";
import { brandType } from "@lib/types/brandType";
import Brand from "./brand";
import AddBrand from "./addBrand";
import { addBrand, deleteBrand, editBrand } from "../../actions/brandActions";
import Footer from "@src/app/site/Footer/page";
import Footer from "@src/app/(siteInfo)/Footer/page";
import constants from "@src/lib/constants";
interface Props {
brands: brandType[];

View File

@@ -1,13 +1,13 @@
"use client";
import { FC, useState } from "react";
import { componentTypeType } from "src/types/componentTypeType";
import { componentTypeType } from "@lib/types/componentTypeType";
import { componentType } from './componentType'
// import AddBrand from "./addBrand";
import { getData } from "src/actions/componentTypeActions";
import { getData } from "@actions/componentTypeActions";
import constants from "@src/lib/constants";
interface Props {
componentType: componentType[];
componentType: any[];
}
const ComponentTypeList: FC<Props> = ({ componentType }) => {

View File

@@ -1,6 +1,6 @@
"use client";
import { ChangeEvent, FC, useState } from "react";
import { componentTypeType } from "src/types/componentTypeType";
import { componentTypeType } from "@lib/types/componentTypeType";
interface Props {
componentType: componentTypeType;

View File

@@ -0,0 +1,6 @@
const Loading = async () => {
return (
<div className="text-center mt-14">Loading...</div>);
}
export default Loading;

View File

@@ -3,7 +3,7 @@ import { PlusCircleIcon } from "@heroicons/react/20/solid";
import Image from "next/image";
import Link from "next/link";
import { TestProductPage } from "@src/app/components/TestProductPage";
import { TestProductPage } from "@src/components/TestProductPage";
export default async function SortTable(props: any) {
return (

View File

@@ -0,0 +1,8 @@
'use server'
export const TestProductPage = async (props: any) => {
return (
<div className="fixed pin z-50 overflow-auto bg-smoke-light flex">
{props.data.modelnumber}
</div>
);
}

View File

@@ -92,7 +92,7 @@ export default async function UsersTable(props: any) {
<tr key={item.uuid}>
<td className="whitespace-wrap flex items-center py-4 pl-4 pr-3 text-xs font-medium text-gray-900 ">
<Link href={`/userProfile/${item.uuid}`}><span className="pl-2"> {item.email}</span></Link>
<Link href={`/UserProfile/${item.uuid}`}><span className="pl-2"> {item.email}</span></Link>
</td>
<td className="whitespace-nowrap px-3 py-4 text-xs text-gray-900">
{item.first_name}