Get rid of usages of the old Button
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user