Get rid of usages of the old Button

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2023-02-20 11:09:08 +01:00
parent bc6653f4e2
commit c10384a923
16 changed files with 59 additions and 43 deletions
@@ -31,7 +31,7 @@ import {
} from '@material-ui/core';
import React from 'react';
import { Button, ItemCardHeader } from '@backstage/core-components';
import { LinkButton, ItemCardHeader } from '@backstage/core-components';
import { useRouteRef } from '@backstage/core-plugin-api';
/** @public */
@@ -66,9 +66,9 @@ export const DomainCard = (props: { entity: DomainEntity }) => {
{entity.metadata.description}
</CardContent>
<CardActions>
<Button to={url} color="primary">
<LinkButton to={url} color="primary">
Explore
</Button>
</LinkButton>
</CardActions>
</Card>
);
@@ -26,7 +26,7 @@ import {
makeStyles,
Typography,
} from '@material-ui/core';
import { Button } from '@backstage/core-components';
import { LinkButton } from '@backstage/core-components';
import classNames from 'classnames';
import React from 'react';
@@ -97,9 +97,9 @@ export const ToolCard = ({ card, objectFit }: Props) => {
)}
</CardContent>
<CardActions>
<Button color="primary" to={url} disabled={!url}>
<LinkButton color="primary" to={url} disabled={!url}>
Explore
</Button>
</LinkButton>
</CardActions>
</Card>
);