Skip to content

Commit 63f39c0

Browse files
committed
add new file and folder
1 parent fbd8003 commit 63f39c0

File tree

7 files changed

+3943
-3044
lines changed

7 files changed

+3943
-3044
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

3+
4+
.env.development
35
# dependencies
46
/node_modules
57
/.pnp

package-lock.json

+2,540-1,976
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@types/node": "^16.18.120",
1919
"@types/react": "^18.3.12",
2020
"@types/react-dom": "^18.3.1",
21+
"body-parser": "^1.20.3",
2122
"chart.js": "^4.4.6",
2223
"react": "^18.3.1",
2324
"react-chartjs-2": "^5.2.0",
@@ -55,5 +56,8 @@
5556
"last 1 firefox version",
5657
"last 1 safari version"
5758
]
59+
},
60+
"devDependencies": {
61+
"@types/body-parser": "^1.19.5"
5862
}
5963
}

src/.env

-2
This file was deleted.

src/components/Products/Products.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ const ProductList = () => {
191191
<TableCell align="center">Kategoriya</TableCell>
192192
<TableCell align="center">Narxi</TableCell>
193193
<TableCell align="center">Muddati</TableCell>
194+
<TableCell align="center">Soni</TableCell>
194195
<TableCell align="center">Sozlamalar</TableCell>
195196
</TableRow>
196197
</TableHead>
@@ -208,6 +209,7 @@ const ProductList = () => {
208209
<TableCell align="center">{product.category}</TableCell>
209210
<TableCell align="center">{product.price}</TableCell>
210211
<TableCell align="center">{product.expiryDate}</TableCell>
212+
<TableCell align="center">{product.stock}</TableCell>
211213
<TableCell align="center">
212214
<IconButton
213215
onClick={(e) => handleOpenMenu(e, product.id)}
@@ -332,7 +334,7 @@ const ProductList = () => {
332334
Yoq
333335
</Button>
334336
<Button
335-
onClick={() => handleDeleteProduct(selectedId!)} // Delete the selected product
337+
onClick={() => handleDeleteProduct(selectedId!)}
336338
color="secondary"
337339
variant="contained"
338340
autoFocus

src/types/types/supabase.ts

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ import { createClient } from "@supabase/supabase-js";
33
const supabaseUrl = process.env.REACT_APP_SUPABASE_URL || "";
44
const supabaseKey = process.env.REACT_APP_SUPABASE_ANON_KEY || "";
55

6+
console.log(supabaseUrl);
7+
68
export const supabase = createClient(supabaseUrl, supabaseKey);

yarn.lock

+1,392-1,065
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)