From a53547d1e03fe1433aa172ebf12d238ece35c5a6 Mon Sep 17 00:00:00 2001 From: Tim <47184194+imgde@users.noreply.github.com> Date: Sun, 22 Jun 2025 13:26:39 +0200 Subject: [PATCH 1/2] Order CSS fix --- 01-frontend/src/helper/adminpanel/OrdersInfo.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/01-frontend/src/helper/adminpanel/OrdersInfo.tsx b/01-frontend/src/helper/adminpanel/OrdersInfo.tsx index 116c01e..a6932b6 100644 --- a/01-frontend/src/helper/adminpanel/OrdersInfo.tsx +++ b/01-frontend/src/helper/adminpanel/OrdersInfo.tsx @@ -47,7 +47,9 @@ const OrderCard: React.FC<{ order: OrderType; onClick: () => void }> = ({order, return (
- + Order: {order.id} @@ -84,7 +86,6 @@ const Column: React.FC @@ -95,14 +96,13 @@ const Column: React.FC + }} elevation={1}> {t(status)}
@@ -190,7 +190,8 @@ export default function OrdersInfo() { } try { await patchOrderMutation.mutateAsync({id: obj.id, status: status}); - refetch(); + await refetch(); + // eslint-disable-next-line @typescript-eslint/no-unused-vars } catch (error) { setOpenSnackbar(true); } From 03a7ca4a925df3890ffc8f41ed3cda6d1ab37176 Mon Sep 17 00:00:00 2001 From: Tim <47184194+imgde@users.noreply.github.com> Date: Sun, 22 Jun 2025 13:32:47 +0200 Subject: [PATCH 2/2] Missing Loc --- 01-frontend/public/locales/de/translation.json | 3 ++- 01-frontend/public/locales/en/translation.json | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/01-frontend/public/locales/de/translation.json b/01-frontend/public/locales/de/translation.json index 02e940a..5462567 100644 --- a/01-frontend/public/locales/de/translation.json +++ b/01-frontend/public/locales/de/translation.json @@ -152,5 +152,6 @@ "imageUploadNoticeFs": "Die Auflösung der Farming Station beträgt 720 x 960 px", "itemCreatedSuccessfully": "Artikel erfolgreich erstellt", "createNewItem": "Neuen Artikel erstellen", - "stockExpected": "Erwarteter Bestand" + "stockExpected": "Erwarteter Bestand", + "addProduct": "Artikel Hinzufügen" } \ No newline at end of file diff --git a/01-frontend/public/locales/en/translation.json b/01-frontend/public/locales/en/translation.json index 512a764..9de533f 100644 --- a/01-frontend/public/locales/en/translation.json +++ b/01-frontend/public/locales/en/translation.json @@ -38,7 +38,7 @@ "hoverToSeeDetails": "Hover over the components list to see more details!", "inStock": "In stock", "item": "Item", - "items": "items", + "items": "Items", "lastName": "Last name", "lightMode": "Zu hellem Modus wechseln", "logout": "Logout", @@ -152,5 +152,6 @@ "imageUploadNoticeFs": "The Resolution of the Farming Station is 720 x 960 px", "itemCreatedSuccessfully": "Item created successfully", "createNewItem": "Create New Item", - "stockExpected": "Expected Stock" + "stockExpected": "Expected Stock", + "addProduct": "Add Product" } \ No newline at end of file