Skip to content

Commit e86036b

Browse files
committed
Feat: Initial setup
1 parent 8946733 commit e86036b

File tree

6 files changed

+65
-1
lines changed

6 files changed

+65
-1
lines changed

src/App.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import './App.css';
33
import Board from './components/TicTacToe/Board';
4+
import FilterableProductTable from './components/FilterableProductTable';
45

56
function App() {
67
// const [count, setCount] = React.useState(0);
@@ -18,7 +19,8 @@ function App() {
1819
<ProfileCard />
1920
<br/> */}
2021
{/* <TicTacToe /> */}
21-
<Board />
22+
{/* <Board /> */}
23+
<FilterableProductTable />
2224
</div>
2325
);
2426
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default function ProductCategoryRow(){
2+
return (
3+
<div>
4+
<h1>Product Category Row</h1>
5+
</div>
6+
)
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default function ProductRow(){
2+
return (
3+
<div>
4+
<h1>Product Row</h1>
5+
</div>
6+
)
7+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import ProductCategoryRow from "./ProductCategoryRow";
2+
import ProductRow from "./ProductRow";
3+
4+
export default function ProductTable(){
5+
return (
6+
<div>
7+
<h1>Product Table</h1>
8+
<ProductCategoryRow />
9+
<ProductRow />
10+
</div>
11+
)
12+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default function SearchTable(){
2+
return (
3+
<div>
4+
<h1>Search Table</h1>
5+
</div>
6+
)
7+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import Search from "antd/es/transfer/search";
2+
import ProductTable from "./ProductTable";
3+
import SearchTable from "./SearchBar";
4+
5+
interface IProduct{
6+
category: string;
7+
price: string;
8+
stocked: boolean;
9+
name: string;
10+
}
11+
12+
const ProductData: IProduct[] = [
13+
{ category: "Fruits", price: "$1", stocked: true, name: "Apple" },
14+
{ category: "Fruits", price: "$1", stocked: true, name: "Dragonfruit" },
15+
{ category: "Fruits", price: "$2", stocked: false, name: "Passionfruit" },
16+
{ category: "Vegetables", price: "$2", stocked: true, name: "Spinach" },
17+
{ category: "Vegetables", price: "$4", stocked: false, name: "Pumpkin" },
18+
{ category: "Vegetables", price: "$1", stocked: true, name: "Peas" }
19+
];
20+
21+
export default function FilterableProductTable(){
22+
return (
23+
<div>
24+
<h1>FilterableProductTable</h1>
25+
<SearchTable />
26+
<ProductTable />
27+
</div>
28+
)
29+
}

0 commit comments

Comments
 (0)