From 23818c1005052c9a240f030b7ab69ebe16cdee39 Mon Sep 17 00:00:00 2001 From: Donkie Date: Wed, 17 Jan 2024 19:52:58 +0100 Subject: [PATCH] Made a nicer button for Show Spools in filament show page --- client/src/pages/filaments/show.tsx | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/client/src/pages/filaments/show.tsx b/client/src/pages/filaments/show.tsx index d30513d..e7ef2fd 100644 --- a/client/src/pages/filaments/show.tsx +++ b/client/src/pages/filaments/show.tsx @@ -1,7 +1,7 @@ import React from "react"; import { IResourceComponentsProps, useShow, useTranslate } from "@refinedev/core"; import { Show, NumberField, DateField, TextField } from "@refinedev/antd"; -import { Typography } from "antd"; +import { Button, Typography } from "antd"; import { NumberFieldUnit } from "../../components/numberField"; import dayjs from "dayjs"; import utc from "dayjs/plugin/utc"; @@ -45,7 +45,18 @@ export const FilamentShow: React.FC = () => { }; return ( - + ( + <> + + {defaultButtons} + + )} + > {t("filament.fields.id")} {t("filament.fields.vendor")} @@ -123,13 +134,6 @@ export const FilamentShow: React.FC = () => { {t("filament.fields.comment")} - {t("filament.fields.spools")} - ); };