diff --git a/.changeset/gentle-laws-prove.md b/.changeset/gentle-laws-prove.md new file mode 100644 index 00000000000..451e9c43354 --- /dev/null +++ b/.changeset/gentle-laws-prove.md @@ -0,0 +1,5 @@ +--- +"saleor-dashboard": patch +--- + +Fixed broken link that points to app details when user selects method of tax calculation. diff --git a/src/taxes/components/TaxAppLabel.tsx b/src/taxes/components/TaxAppLabel.tsx index c42aaaeffdc..9191b7d74bf 100644 --- a/src/taxes/components/TaxAppLabel.tsx +++ b/src/taxes/components/TaxAppLabel.tsx @@ -1,6 +1,7 @@ import { AppAvatar } from "@dashboard/apps/components/AppAvatar/AppAvatar"; import { AppUrls } from "@dashboard/apps/urls"; -import { Box, ExternalLinkIcon, Text } from "@saleor/macaw-ui-next"; +import useNavigator from "@dashboard/hooks/useNavigator"; +import { Box, Button, ExternalLinkIcon, Text } from "@saleor/macaw-ui-next"; import moment from "moment"; import React from "react"; import { FormattedMessage } from "react-intl"; @@ -24,6 +25,12 @@ export const TaxAppLabel: React.FC = ({ }) => { const logo = logoUrl ? { source: logoUrl } : undefined; + const navigate = useNavigator(); + + const navigateToAppScreen = () => { + navigate(AppUrls.resolveAppDetailsUrl(id)); + }; + return ( = ({ )} - - {identifier && ( - - {identifier} - - )} - - + ); };