mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
chore: refactor link button components to use v2
This commit is contained in:
parent
e23830c818
commit
9e9631fc92
@ -5,7 +5,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { ContentLayout, EmptyStateLayout, HeaderLayout, LinkButton } from '@strapi/design-system';
|
||||
import { ContentLayout, EmptyStateLayout, HeaderLayout } from '@strapi/design-system';
|
||||
import { LinkButton } from '@strapi/design-system/v2';
|
||||
import { ArrowRight, EmptyPictures } from '@strapi/icons';
|
||||
import { useIntl } from 'react-intl';
|
||||
|
||||
@ -26,7 +27,7 @@ export const InternalErrorPage = () => {
|
||||
<ContentLayout>
|
||||
<EmptyStateLayout
|
||||
action={
|
||||
<LinkButton variant="secondary" endIcon={<ArrowRight />} to="/">
|
||||
<LinkButton variant="secondary" endIcon={<ArrowRight />} href="/">
|
||||
{formatMessage({
|
||||
id: 'app.components.NotFoundPage.back',
|
||||
defaultMessage: 'Back to homepage',
|
||||
|
@ -4,7 +4,8 @@
|
||||
* This is the page we show when the user visits a url that doesn't have a route
|
||||
*
|
||||
*/
|
||||
import { ContentLayout, EmptyStateLayout, HeaderLayout, LinkButton } from '@strapi/design-system';
|
||||
import { ContentLayout, EmptyStateLayout, HeaderLayout } from '@strapi/design-system';
|
||||
import { LinkButton } from '@strapi/design-system/v2';
|
||||
import { ArrowRight, EmptyPictures } from '@strapi/icons';
|
||||
import { useIntl } from 'react-intl';
|
||||
|
||||
@ -25,7 +26,7 @@ export const NotFoundPage = () => {
|
||||
<ContentLayout>
|
||||
<EmptyStateLayout
|
||||
action={
|
||||
<LinkButton variant="secondary" endIcon={<ArrowRight />} to="/">
|
||||
<LinkButton variant="secondary" endIcon={<ArrowRight />} href="/">
|
||||
{formatMessage({
|
||||
id: 'app.components.NotFoundPage.back',
|
||||
defaultMessage: 'Back to homepage',
|
||||
|
@ -1,6 +1,7 @@
|
||||
import * as React from 'react';
|
||||
|
||||
import { ContentLayout, EmptyStateLayout, HeaderLayout, LinkButton } from '@strapi/design-system';
|
||||
import { ContentLayout, EmptyStateLayout, HeaderLayout } from '@strapi/design-system';
|
||||
import { LinkButton } from '@strapi/design-system/v2';
|
||||
import { EmptyDocuments, Plus } from '@strapi/icons';
|
||||
import { Data } from '@strapi/types';
|
||||
import * as qs from 'qs';
|
||||
@ -154,7 +155,7 @@ export const ListView = () => {
|
||||
tokenType: API_TOKEN_TYPE,
|
||||
})
|
||||
}
|
||||
to="/settings/api-tokens/create"
|
||||
href="/settings/api-tokens/create"
|
||||
>
|
||||
{formatMessage({
|
||||
id: 'Settings.apiTokens.create',
|
||||
@ -190,7 +191,7 @@ export const ListView = () => {
|
||||
<LinkButton
|
||||
variant="secondary"
|
||||
startIcon={<Plus />}
|
||||
to="/settings/api-tokens/create"
|
||||
href="/settings/api-tokens/create"
|
||||
>
|
||||
{formatMessage({
|
||||
id: 'Settings.apiTokens.addNewToken',
|
||||
|
@ -1,6 +1,7 @@
|
||||
import * as React from 'react';
|
||||
|
||||
import { ContentLayout, EmptyStateLayout, HeaderLayout, LinkButton } from '@strapi/design-system';
|
||||
import { ContentLayout, EmptyStateLayout, HeaderLayout } from '@strapi/design-system';
|
||||
import { LinkButton } from '@strapi/design-system/v2';
|
||||
import { EmptyDocuments, Plus } from '@strapi/icons';
|
||||
import { Data } from '@strapi/types';
|
||||
import * as qs from 'qs';
|
||||
@ -167,7 +168,7 @@ const ListView = () => {
|
||||
tokenType: TRANSFER_TOKEN_TYPE,
|
||||
})
|
||||
}
|
||||
to="/settings/transfer-tokens/create"
|
||||
href="/settings/transfer-tokens/create"
|
||||
>
|
||||
{formatMessage({
|
||||
id: 'Settings.transferTokens.create',
|
||||
@ -198,7 +199,7 @@ const ListView = () => {
|
||||
<LinkButton
|
||||
variant="secondary"
|
||||
startIcon={<Plus />}
|
||||
to="/settings/transfer-tokens/create"
|
||||
href="/settings/transfer-tokens/create"
|
||||
>
|
||||
{formatMessage({
|
||||
id: 'Settings.transferTokens.addNewToken',
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { Box, Flex, Icon, LinkButton, Typography } from '@strapi/design-system';
|
||||
import { Box, Flex, Icon, Typography } from '@strapi/design-system';
|
||||
import { LinkButton } from '@strapi/design-system/v2';
|
||||
import { EmptyDocuments, Plus } from '@strapi/icons';
|
||||
import * as qs from 'qs';
|
||||
import { useIntl } from 'react-intl';
|
||||
@ -59,7 +60,7 @@ export const EmptyAttributes = () => {
|
||||
</Box>
|
||||
</Box>
|
||||
<LinkButton
|
||||
to={`/marketplace?${qs.stringify({ categories: ['Custom fields'] })}`}
|
||||
href={`/marketplace?${qs.stringify({ categories: ['Custom fields'] })}`}
|
||||
variant="secondary"
|
||||
startIcon={<Plus />}
|
||||
>
|
||||
|
Loading…
x
Reference in New Issue
Block a user