From 1f283a798d38af79528d1d4807e550916b38f9c9 Mon Sep 17 00:00:00 2001 From: Vincenzo Guerrisi Date: Mon, 25 Sep 2023 17:01:52 +0200 Subject: [PATCH] use ButtonLink instead of Button+navigate --- .../src/ColorsSection/SectionCompleted.tsx | 13 +++++-------- packages/configuration-builder/src/Home.tsx | 16 +++++++++++----- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/packages/configuration-builder/src/ColorsSection/SectionCompleted.tsx b/packages/configuration-builder/src/ColorsSection/SectionCompleted.tsx index ca2c57ec7..c985d71e6 100644 --- a/packages/configuration-builder/src/ColorsSection/SectionCompleted.tsx +++ b/packages/configuration-builder/src/ColorsSection/SectionCompleted.tsx @@ -1,29 +1,26 @@ -import { Button, Feedback, Inline, Stack } from "@buildo/bento-design-system"; +import { ButtonLink, Feedback, Inline, Stack } from "@buildo/bento-design-system"; import { useTranslation } from "react-i18next"; import { IconConfetti } from "../PhosphorIcons"; -import { useNavigate } from "react-router-dom"; export function SectionCompleted() { - const navigate = useNavigate(); - const { t } = useTranslation(); return ( -