fix(admin-ui): Navigating to tax settings should not break URL (#3989)

* fix navigation to taxes page, and switch out react-helmet with react-helemt-async

* add changeset

* pinpoint react-hot-toast
This commit is contained in:
Kasper Fabricius Kristensen
2023-05-03 19:40:04 +08:00
committed by GitHub
parent 6c0dcc20c9
commit 596566a510
8 changed files with 110 additions and 86 deletions

View File

@@ -1,4 +1,5 @@
import { Helmet } from "react-helmet"
import React from "react"
import { Helmet } from "react-helmet-async"
const site = {
siteMetadata: {
@@ -11,12 +12,15 @@ const site = {
function SEO({
description,
lang,
meta,
meta = [],
title,
}: {
description?: string
lang?: string
meta?: any[]
meta?: React.DetailedHTMLProps<
React.MetaHTMLAttributes<HTMLMetaElement>,
HTMLMetaElement
>[]
title: string
}) {
const metaDescription = description || site.siteMetadata.description
@@ -61,7 +65,8 @@ function SEO({
name: `twitter:description`,
content: metaDescription,
},
].concat(meta)}
...meta,
]}
/>
)
}