mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
small changes
This commit is contained in:
@@ -1,11 +1,19 @@
|
||||
import { Account } from "@db/schema/Account";
|
||||
import { accounts } from "@schemas/schema";
|
||||
import { getData } from "@actions/accountActions";
|
||||
import Account from "@components/Account"; // Adjust the import path as necessary
|
||||
import React from 'react';
|
||||
|
||||
|
||||
export interface AccountProps {
|
||||
account: any; // Adjust the type according to your data structure
|
||||
}
|
||||
|
||||
|
||||
export default async function AccountsPage() {
|
||||
const data = await getData();
|
||||
return (
|
||||
<div className="bg-gray-100 min-h-screen flex flex-col">
|
||||
{/* <Account account={data} /> */}
|
||||
<Account account={data} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
14
src/components/Account/index.tsx
Normal file
14
src/components/Account/index.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { AccountProps } from "@src/app/Accounts/page";
|
||||
import React from "react";
|
||||
|
||||
|
||||
export const Account: React.FC<AccountProps> = ({ account }) => {
|
||||
return (
|
||||
<div className="account-card">
|
||||
<h2>{account.name}</h2>
|
||||
<p>{account.email}</p>
|
||||
{/* Add more fields as necessary */}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
export default Account;
|
||||
@@ -1,6 +1,10 @@
|
||||
"use client";
|
||||
import { ChangeEvent, FC, useState } from "react";
|
||||
import { brandType } from "src/types/brandType";
|
||||
|
||||
type brandType = {
|
||||
id: number;
|
||||
name: string;
|
||||
};
|
||||
interface Props {
|
||||
brand: brandType;
|
||||
changeBrandName: (id: number, name: string) => void;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
export type brandType = {
|
||||
id: number;
|
||||
name: string;
|
||||
};
|
||||
};
|
||||
|
||||
export default brandType;
|
||||
Reference in New Issue
Block a user