chore: replace function expression with inline statement
replace destructuring for better static analysis remove unused variables
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { getIntl } from "@/i18n"
|
||||
|
||||
export default async function SkipToMainContent() {
|
||||
const { formatMessage } = await getIntl()
|
||||
const intl = await getIntl()
|
||||
return (
|
||||
<div className="navigation--skip-to-content">
|
||||
<a data-js="skip-to-content" href="#maincontent">
|
||||
{formatMessage({ id: "Skip to main content" })}
|
||||
{intl.formatMessage({ id: "Skip to main content" })}
|
||||
</a>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user