Fix: Remove unused imports and variables to satisfy strict TypeScript build
This commit is contained in:
1 parent
ed3f67a057
commit
81f6dec6e1
5 files changed
+3
-12
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { useState, useEffect } from 'react';
|
||||
import { Icons } from './Icons';
|
||||
import { API } from '../services/api';
|
||||
|
||||
@@ -21,13 +21,6 @@ export default function AdminDashboard({ stock, orders, config, refreshData, not
|
||||
refreshData();
|
||||
};
|
||||
|
||||
const deleteOrder = (id: number) => {
|
||||
promptConfirm("Delete this order record?", async () => {
|
||||
await API.deleteOrder(id);
|
||||
refreshData();
|
||||
notify("Order Deleted");
|
||||
});
|
||||
};
|
||||
|
||||
const addNewStockItem = async () => {
|
||||
const newItem = {
|
||||
|
||||
Reference in new issue
Block a user