refactor: replace @material-ui Link

Signed-off-by: Dmitry Lobanov <lobanov.dmitry.s@gmail.com>
This commit is contained in:
Dmitry Lobanov
2022-10-08 10:22:58 +00:00
committed by Fredrik Adelöw
parent b77eb63ef8
commit f905853ad6
27 changed files with 109 additions and 147 deletions
@@ -22,10 +22,10 @@ import {
import React, { useState } from 'react';
import { useAnalytics } from '@backstage/core-plugin-api';
import { Link } from '@backstage/core-components';
import {
Box,
Link,
Paper,
Popover,
Tooltip,
@@ -133,12 +133,12 @@ export const CalendarEvent = ({ event }: { event: GCalendarEvent }) => {
<Link
data-testid="calendar-event-zoom-link"
className={classes.link}
href={zoomLink}
target="_blank"
to={zoomLink}
onClick={e => {
e.stopPropagation();
analytics.captureEvent('click', 'zoom link');
}}
noTrack
>
<img src={zoomIcon} alt="Zoom link" />
</Link>
@@ -18,12 +18,11 @@ import React from 'react';
import DOMPurify from 'dompurify';
import { useAnalytics } from '@backstage/core-plugin-api';
import { Link } from '@backstage/core-components';
import {
Box,
Divider,
IconButton,
Link,
Tooltip,
Typography,
makeStyles,
@@ -77,11 +76,11 @@ export const CalendarEventPopoverContent = ({
<Tooltip title="Open in Calendar">
<Link
data-testid="open-calendar-link"
href={event.htmlLink}
target="_blank"
to={event.htmlLink}
onClick={_e =>
analytics.captureEvent('click', 'open in calendar')
}
noTrack
>
<IconButton>
<ArrowForwardIcon />
@@ -92,9 +91,9 @@ export const CalendarEventPopoverContent = ({
</Box>
{zoomLink && (
<Link
href={zoomLink}
target="_blank"
to={zoomLink}
onClick={_e => analytics.captureEvent('click', 'zoom link')}
noTrack
>
Join Zoom Meeting
</Link>