diff --git a/packages/app/src/components/search/SearchModal.tsx b/packages/app/src/components/search/SearchModal.tsx index 2aed970e75..4557857ba5 100644 --- a/packages/app/src/components/search/SearchModal.tsx +++ b/packages/app/src/components/search/SearchModal.tsx @@ -25,6 +25,7 @@ import { Paper, useTheme, } from '@material-ui/core'; +import Typography from '@material-ui/core/Typography'; import BuildIcon from '@material-ui/icons/Build'; import LaunchIcon from '@material-ui/icons/Launch'; import { @@ -178,9 +179,12 @@ export const SearchModal = ({ toggleModal }: { toggleModal: () => void }) => { }} to={`${getSearchLink()}?query=${term}`} > - + View Full Results - + diff --git a/packages/core-components/src/components/LogViewer/LogLine.tsx b/packages/core-components/src/components/LogViewer/LogLine.tsx index ed3396360e..8f3a2ce65c 100644 --- a/packages/core-components/src/components/LogViewer/LogLine.tsx +++ b/packages/core-components/src/components/LogViewer/LogLine.tsx @@ -15,6 +15,7 @@ */ import React, { useMemo } from 'react'; +import Typography from '@material-ui/core/Typography'; import { AnsiChunk, AnsiLine, ChunkModifiers } from './AnsiProcessor'; import startCase from 'lodash/startCase'; import classnames from 'classnames'; @@ -158,7 +159,8 @@ export function LogLine({ const elements = useMemo( () => chunks.map(({ text, modifiers, highlight }, index) => ( - {text} - + )), [chunks, highlightResultIndex, classes], ); diff --git a/packages/core-components/src/components/Tabs/TabBar.tsx b/packages/core-components/src/components/Tabs/TabBar.tsx index acbe88a034..99be9a7d1d 100644 --- a/packages/core-components/src/components/Tabs/TabBar.tsx +++ b/packages/core-components/src/components/Tabs/TabBar.tsx @@ -17,6 +17,7 @@ import React, { PropsWithChildren } from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Tabs from '@material-ui/core/Tabs'; +import Typography from '@material-ui/core/Typography'; import { BackstageTheme } from '@backstage/theme'; interface StyledTabsProps { @@ -53,7 +54,7 @@ export const StyledTabs = (props: PropsWithChildren) => { }} + TabIndicatorProps={{ children: }} /> ); }; diff --git a/packages/core-components/src/layout/Breadcrumbs/Breadcrumbs.stories.tsx b/packages/core-components/src/layout/Breadcrumbs/Breadcrumbs.stories.tsx index 12bd757aa3..2893cf10c9 100644 --- a/packages/core-components/src/layout/Breadcrumbs/Breadcrumbs.stories.tsx +++ b/packages/core-components/src/layout/Breadcrumbs/Breadcrumbs.stories.tsx @@ -106,7 +106,7 @@ export const OutsideOfHeader = () => { General Page - Second Page + Second Page {open ? : } diff --git a/packages/core-components/src/layout/TabbedCard/TabbedCard.stories.tsx b/packages/core-components/src/layout/TabbedCard/TabbedCard.stories.tsx index 6703fe25ce..f1eace4d06 100644 --- a/packages/core-components/src/layout/TabbedCard/TabbedCard.stories.tsx +++ b/packages/core-components/src/layout/TabbedCard/TabbedCard.stories.tsx @@ -15,6 +15,7 @@ */ import Grid from '@material-ui/core/Grid'; +import Typography from '@material-ui/core/Typography'; import React, { PropsWithChildren, useState } from 'react'; import { MemoryRouter } from 'react-router-dom'; import { CardTab, TabbedCard } from './TabbedCard'; @@ -89,7 +90,7 @@ export const WithControlledTabValue = () => { return ( - Selected tab is {selectedTab} + Selected tab is {selectedTab} } secondary={ - + } /> diff --git a/plugins/api-docs/src/components/ApiDefinitionCard/ApiTypeTitle.tsx b/plugins/api-docs/src/components/ApiDefinitionCard/ApiTypeTitle.tsx index 93ab7cc05a..18ec2cb25f 100644 --- a/plugins/api-docs/src/components/ApiDefinitionCard/ApiTypeTitle.tsx +++ b/plugins/api-docs/src/components/ApiDefinitionCard/ApiTypeTitle.tsx @@ -15,6 +15,7 @@ */ import { ApiEntity } from '@backstage/catalog-model'; +import Typography from '@material-ui/core/Typography'; import React from 'react'; import { apiDocsConfigRef } from '../../config'; import { useApi } from '@backstage/core-plugin-api'; @@ -28,5 +29,5 @@ export const ApiTypeTitle = (props: { apiEntity: ApiEntity }) => { const definition = config.getApiDefinitionWidget(apiEntity); const type = definition ? definition.title : apiEntity.spec.type; - return {type}; + return {type}; }; diff --git a/plugins/azure-devops/src/components/BuildTable/BuildTable.tsx b/plugins/azure-devops/src/components/BuildTable/BuildTable.tsx index 68bf4102fc..6707929a6c 100644 --- a/plugins/azure-devops/src/components/BuildTable/BuildTable.tsx +++ b/plugins/azure-devops/src/components/BuildTable/BuildTable.tsx @@ -42,34 +42,34 @@ export const getBuildResultComponent = (result: number | undefined) => { switch (result) { case BuildResult.Succeeded: return ( - + Succeeded - + ); case BuildResult.PartiallySucceeded: return ( - + Partially Succeeded - + ); case BuildResult.Failed: return ( - + Failed - + ); case BuildResult.Canceled: return ( - + Canceled - + ); case BuildResult.None: default: return ( - + Unknown - + ); } }; @@ -81,36 +81,36 @@ export const getBuildStateComponent = ( switch (status) { case BuildStatus.InProgress: return ( - + In Progress - + ); case BuildStatus.Completed: return getBuildResultComponent(result); case BuildStatus.Cancelling: return ( - + Cancelling - + ); case BuildStatus.Postponed: return ( - + Postponed - + ); case BuildStatus.NotStarted: return ( - + Not Started - + ); case BuildStatus.None: default: return ( - + Unknown - + ); } }; diff --git a/plugins/azure-devops/src/components/PullRequestsPage/lib/PullRequestCard/PullRequestCard.tsx b/plugins/azure-devops/src/components/PullRequestsPage/lib/PullRequestCard/PullRequestCard.tsx index 4b2823814e..98237cb2a3 100644 --- a/plugins/azure-devops/src/components/PullRequestsPage/lib/PullRequestCard/PullRequestCard.tsx +++ b/plugins/azure-devops/src/components/PullRequestsPage/lib/PullRequestCard/PullRequestCard.tsx @@ -16,6 +16,7 @@ import { Avatar, Link } from '@backstage/core-components'; import { Card, CardContent, CardHeader } from '@material-ui/core'; +import Typography from '@material-ui/core/Typography'; import { AutoCompleteIcon } from '../AutoCompleteIcon'; import { DashboardPullRequest } from '@backstage/plugin-azure-devops-common'; @@ -78,9 +79,9 @@ export const PullRequestCard = ({ : undefined; const subheader = ( - + {repoLink} ยท {creationDate} - + ); const avatar = ( diff --git a/plugins/azure-devops/src/components/PullRequestsPage/lib/PullRequestCard/PullRequestCardPolicy.tsx b/plugins/azure-devops/src/components/PullRequestsPage/lib/PullRequestCard/PullRequestCardPolicy.tsx index 580f8c571f..ab9428aaf6 100644 --- a/plugins/azure-devops/src/components/PullRequestsPage/lib/PullRequestCard/PullRequestCardPolicy.tsx +++ b/plugins/azure-devops/src/components/PullRequestsPage/lib/PullRequestCard/PullRequestCardPolicy.tsx @@ -20,6 +20,7 @@ import { PolicyType, } from '@backstage/plugin-azure-devops-common'; import { styled, withStyles } from '@material-ui/core/styles'; +import Typography from '@material-ui/core/Typography'; import CancelIcon from '@material-ui/icons/Cancel'; import GroupWorkIcon from '@material-ui/icons/GroupWork'; @@ -91,6 +92,7 @@ export const PullRequestCardPolicy = ({ policy, }: PullRequestCardPolicyProps) => ( - {getPolicyIcon(policy)} {policy.text} + {getPolicyIcon(policy)}{' '} + {policy.text} ); diff --git a/plugins/azure-sites/src/components/AzureSitesOverviewTableComponent/AzureSitesOverviewTable.tsx b/plugins/azure-sites/src/components/AzureSitesOverviewTableComponent/AzureSitesOverviewTable.tsx index c0558ee05c..a25d186a48 100644 --- a/plugins/azure-sites/src/components/AzureSitesOverviewTableComponent/AzureSitesOverviewTable.tsx +++ b/plugins/azure-sites/src/components/AzureSitesOverviewTableComponent/AzureSitesOverviewTable.tsx @@ -33,6 +33,7 @@ import PublicIcon from '@material-ui/icons/Public'; import MoreVertIcon from '@material-ui/icons/MoreVert'; import StartIcon from '@material-ui/icons/PlayArrow'; import StopIcon from '@material-ui/icons/Stop'; +import Typography from '@material-ui/core/Typography'; import OpenInNewIcon from '@material-ui/icons/OpenInNew'; import { DateTime } from 'luxon'; import { useApi } from '@backstage/core-plugin-api'; @@ -51,7 +52,8 @@ const State = ({ value }: { value: States }) => { }; return ( - option?.metadata?.name} - renderOption={option => {option?.metadata?.name}} + renderOption={option => ( + {option?.metadata?.name} + )} renderInput={params => } onChange={(_, data) => { onChange(data!); diff --git a/plugins/cicd-statistics/src/charts/status-chart.tsx b/plugins/cicd-statistics/src/charts/status-chart.tsx index 7b07885ca5..7f70d303d5 100644 --- a/plugins/cicd-statistics/src/charts/status-chart.tsx +++ b/plugins/cicd-statistics/src/charts/status-chart.tsx @@ -118,9 +118,9 @@ export function StatusChart(props: StatusChartProps) { : percentOrCount; return [ - + {label}: {valueText} - , + , null, ]; }; diff --git a/plugins/cicd-statistics/src/components/utils.tsx b/plugins/cicd-statistics/src/components/utils.tsx index 0133cf7ba8..e81c0495ad 100644 --- a/plugins/cicd-statistics/src/components/utils.tsx +++ b/plugins/cicd-statistics/src/components/utils.tsx @@ -18,6 +18,7 @@ import React, { CSSProperties } from 'react'; import { DateTime, Duration } from 'luxon'; import humanizeDuration from 'humanize-duration'; import { capitalize } from 'lodash'; +import Typography from '@material-ui/core/Typography'; const infoText: CSSProperties = { color: 'InfoText' }; @@ -60,11 +61,19 @@ function formatDateTimeShort(milliseconds: number) { } export function labelFormatter(epoch: number) { - return {formatDateTimeShort(epoch)}; + return ( + + {formatDateTimeShort(epoch)} + + ); } export function labelFormatterWithoutTime(epoch: number) { - return {formatDateShort(epoch)}; + return ( + + {formatDateShort(epoch)} + + ); } export function tickFormatterX(epoch: number) { @@ -88,12 +97,12 @@ export function tickFormatterY(duration: number) { export function tooltipValueFormatter(durationOrCount: number, name: string) { return [ - + {capitalize(name)}:{' '} {name.endsWith(' count') ? durationOrCount : formatDuration(durationOrCount)} - , + , null, ]; } diff --git a/plugins/cost-insights/src/components/AlertInsights/AlertInsightsHeader.tsx b/plugins/cost-insights/src/components/AlertInsights/AlertInsightsHeader.tsx index 2d218f8164..97def45b76 100644 --- a/plugins/cost-insights/src/components/AlertInsights/AlertInsightsHeader.tsx +++ b/plugins/cost-insights/src/components/AlertInsights/AlertInsightsHeader.tsx @@ -36,9 +36,9 @@ export const AlertInsightsHeader = ({ {title}{' '} - + ๐ŸŽฏ - + {subtitle} diff --git a/plugins/cost-insights/src/components/CostGrowth/CostGrowth.tsx b/plugins/cost-insights/src/components/CostGrowth/CostGrowth.tsx index 51f9c61e7b..c6dd29b86f 100644 --- a/plugins/cost-insights/src/components/CostGrowth/CostGrowth.tsx +++ b/plugins/cost-insights/src/components/CostGrowth/CostGrowth.tsx @@ -16,6 +16,7 @@ import React from 'react'; import classnames from 'classnames'; +import Typography from '@material-ui/core/Typography'; import { CurrencyType, Duration, GrowthType } from '../../types'; import { ChangeStatistic } from '@backstage/plugin-cost-insights-common'; import { rateOf } from '../../utils/currency'; @@ -59,48 +60,52 @@ export const CostGrowth = (props: CostGrowthProps) => { }); if (engineers < engineerThreshold) { - return Negligible; + return ( + + Negligible + + ); } if (currency.kind === CurrencyType.USD) { // Do not display percentage if ratio cannot be calculated if (isNaN(ratio)) { return ( - + ~{currency.prefix} {formatCurrency(converted)} - + ); } return ( - + {formatPercent(ratio)} or ~{currency.prefix} {formatCurrency(converted)} - + ); } if (amount < 1) { return ( - + less than {indefiniteArticleOf(['a', 'an'], currency.unit)} - + ); } // Do not display percentage if ratio cannot be calculated if (isNaN(ratio)) { return ( - + ~{formatCurrency(converted, currency.unit)} - + ); } return ( - + {formatPercent(ratio)} or ~{formatCurrency(converted, currency.unit)} - + ); }; diff --git a/plugins/cost-insights/src/components/CostInsightsHeader/CostInsightsHeader.tsx b/plugins/cost-insights/src/components/CostInsightsHeader/CostInsightsHeader.tsx index 8e12b7f5dd..c1b3e12575 100644 --- a/plugins/cost-insights/src/components/CostInsightsHeader/CostInsightsHeader.tsx +++ b/plugins/cost-insights/src/components/CostInsightsHeader/CostInsightsHeader.tsx @@ -46,9 +46,9 @@ const CostInsightsHeaderNoData = ({ return ( <> - + ๐Ÿ˜ณ - {' '} + {' '} Well this is awkward @@ -76,9 +76,9 @@ const CostInsightsHeaderAlerts = ({ return ( <> - + ๐Ÿ”Ž - {' '} + {' '} You have {alerts} thing{alerts > 1 && 's'} to look into @@ -101,9 +101,9 @@ const CostInsightsHeaderNoAlerts = ({ return ( <> - + ๐Ÿ‘ - {' '} + {' '} Your team is doing great @@ -120,9 +120,9 @@ export const CostInsightsHeaderNoGroups = () => { return ( <> - + ๐Ÿ˜ณ - {' '} + {' '} Well this is awkward diff --git a/plugins/cost-insights/src/components/CurrencySelect/CurrencySelect.tsx b/plugins/cost-insights/src/components/CurrencySelect/CurrencySelect.tsx index 47d2bf1eda..8f7d466de7 100644 --- a/plugins/cost-insights/src/components/CurrencySelect/CurrencySelect.tsx +++ b/plugins/cost-insights/src/components/CurrencySelect/CurrencySelect.tsx @@ -22,6 +22,7 @@ import { Select, SelectProps, } from '@material-ui/core'; +import Typography from '@material-ui/core/Typography'; import { Currency, CurrencyType } from '../../types'; import { findAlways } from '../../utils/assert'; import { useSelectStyles as useStyles } from '../../utils/styles'; @@ -73,9 +74,9 @@ export const CurrencySelect = ({ key={c.kind || NULL_VALUE} value={c.kind || NULL_VALUE} > - + {c.label} - + ))} diff --git a/plugins/cost-insights/src/components/LegendItem/LegendItem.tsx b/plugins/cost-insights/src/components/LegendItem/LegendItem.tsx index 0b8a993b39..93b1df7bdb 100644 --- a/plugins/cost-insights/src/components/LegendItem/LegendItem.tsx +++ b/plugins/cost-insights/src/components/LegendItem/LegendItem.tsx @@ -59,9 +59,14 @@ export const LegendItem = (props: PropsWithChildren) => { } placement="top-start" > - + - + )} diff --git a/plugins/cost-insights/src/components/WhyCostsMatter/WhyCostsMatter.tsx b/plugins/cost-insights/src/components/WhyCostsMatter/WhyCostsMatter.tsx index 3869356c5c..0b3ea9f00d 100644 --- a/plugins/cost-insights/src/components/WhyCostsMatter/WhyCostsMatter.tsx +++ b/plugins/cost-insights/src/components/WhyCostsMatter/WhyCostsMatter.tsx @@ -30,9 +30,9 @@ export const WhyCostsMatter = () => { Sustainability{' '} - + ๐ŸŒŽ - + Reducing cloud usage improves our carbon footprint. @@ -44,9 +44,13 @@ export const WhyCostsMatter = () => { Revenue{' '} - + ๐Ÿ’ธ - + Keeping cloud costs well-tuned prevents infrastructure from eating @@ -59,9 +63,9 @@ export const WhyCostsMatter = () => { Innovation{' '} - + ๐Ÿฅ‡ - + The more we save, the more we can reinvest in speed and diff --git a/plugins/cost-insights/src/example/alerts/KubernetesMigrationAlert.tsx b/plugins/cost-insights/src/example/alerts/KubernetesMigrationAlert.tsx index eb5423148d..d1cc2d9828 100644 --- a/plugins/cost-insights/src/example/alerts/KubernetesMigrationAlert.tsx +++ b/plugins/cost-insights/src/example/alerts/KubernetesMigrationAlert.tsx @@ -16,6 +16,7 @@ import React from 'react'; import pluralize from 'pluralize'; +import Typography from '@material-ui/core/Typography'; import { KubernetesMigrationAlertCard } from '../components'; import { CostInsightsApi } from '../../api'; import { @@ -91,11 +92,11 @@ export class KubernetesMigrationAlert implements KubernetesMigrationApi { get title() { return ( - + Consider migrating{' '} {pluralize('service', this.data.services.length, true)} to Kubernetes{' '} - + ); } diff --git a/plugins/firehydrant/src/components/ServiceDetailsCard/ServiceDetailsCard.tsx b/plugins/firehydrant/src/components/ServiceDetailsCard/ServiceDetailsCard.tsx index b70c578e11..ed8bbf6a81 100644 --- a/plugins/firehydrant/src/components/ServiceDetailsCard/ServiceDetailsCard.tsx +++ b/plugins/firehydrant/src/components/ServiceDetailsCard/ServiceDetailsCard.tsx @@ -192,7 +192,10 @@ export const ServiceDetailsCard = () => { {!showServiceDetails && !loading && (
-   This service does not exist in FireHydrant. +    + + This service does not exist in FireHydrant. +
)} {showServiceDetails && ( @@ -251,7 +254,7 @@ export const ServiceDetailsCard = () => {
- Declare an incident + Declare an incident @@ -267,7 +270,7 @@ export const ServiceDetailsCard = () => { - View all incidents + View all incidents @@ -284,7 +287,7 @@ export const ServiceDetailsCard = () => { - View Service Details + View Service Details diff --git a/plugins/fossa/src/components/FossaCard/FossaCard.tsx b/plugins/fossa/src/components/FossaCard/FossaCard.tsx index 31ff84e107..4c51cdeb42 100644 --- a/plugins/fossa/src/components/FossaCard/FossaCard.tsx +++ b/plugins/fossa/src/components/FossaCard/FossaCard.tsx @@ -17,6 +17,7 @@ import { useEntity } from '@backstage/plugin-catalog-react'; import { Grid, Tooltip } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; +import Typography from '@material-ui/core/Typography'; import { DateTime } from 'luxon'; import React, { PropsWithChildren } from 'react'; import useAsync from 'react-use/lib/useAsync'; @@ -195,7 +196,9 @@ export const FossaCard = (props: { variant?: InfoCardVariants }) => { Based on {value.dependencyCount} Dependencies on branch{' '} - {value.projectDefaultBranch} + + {value.projectDefaultBranch} + . diff --git a/plugins/fossa/src/components/FossaPage/FossaPage.tsx b/plugins/fossa/src/components/FossaPage/FossaPage.tsx index faff862d0f..4b82fab220 100644 --- a/plugins/fossa/src/components/FossaPage/FossaPage.tsx +++ b/plugins/fossa/src/components/FossaPage/FossaPage.tsx @@ -27,6 +27,7 @@ import { getEntityRelations, } from '@backstage/plugin-catalog-react'; import { Tooltip } from '@material-ui/core'; +import Typography from '@material-ui/core/Typography'; import { Skeleton } from '@material-ui/lab'; import { DateTime } from 'luxon'; import * as React from 'react'; @@ -140,11 +141,11 @@ const columns: TableColumn[] = [ DateTime.DATETIME_MED, )} > - + {DateTime.fromISO(details.timestamp).toRelative({ locale: 'en', })} - + ) ); diff --git a/plugins/gcp-projects/src/components/ProjectListPage/ProjectListPage.tsx b/plugins/gcp-projects/src/components/ProjectListPage/ProjectListPage.tsx index dea12f4b60..209d2a27d0 100644 --- a/plugins/gcp-projects/src/components/ProjectListPage/ProjectListPage.tsx +++ b/plugins/gcp-projects/src/components/ProjectListPage/ProjectListPage.tsx @@ -39,11 +39,17 @@ import { Link as RouterLink } from 'react-router-dom'; const LongText = ({ text, max }: { text: string; max: number }) => { if (text.length < max) { - return {text}; + return ( + + {text} + + ); } return ( - {text.slice(0, max)}... + + {text.slice(0, max)}... + ); }; diff --git a/plugins/git-release-manager/src/components/Differ.tsx b/plugins/git-release-manager/src/components/Differ.tsx index c29f3732e3..d579a8d6c7 100644 --- a/plugins/git-release-manager/src/components/Differ.tsx +++ b/plugins/git-release-manager/src/components/Differ.tsx @@ -16,6 +16,7 @@ import React, { ReactNode } from 'react'; import { grey } from '@material-ui/core/colors'; +import Typography from '@material-ui/core/Typography'; import CallSplitIcon from '@material-ui/icons/CallSplit'; import ChatIcon from '@material-ui/icons/Chat'; import DynamicFeedIcon from '@material-ui/icons/DynamicFeed'; @@ -35,29 +36,31 @@ export const Differ = ({ current, next, icon }: DifferProps) => { return ( <> {icon && ( - + {' '} - + )} {!!current && ( - {current ?? 'None'} - + )} - {current && next && {' โ†’ '}} + {current && next && {' โ†’ '}} {next && ( - {next} - + )} ); diff --git a/plugins/git-release-manager/src/components/ResponseStepDialog/LinearProgressWithLabel.tsx b/plugins/git-release-manager/src/components/ResponseStepDialog/LinearProgressWithLabel.tsx index 5c4b34b3b9..2b95e5f247 100644 --- a/plugins/git-release-manager/src/components/ResponseStepDialog/LinearProgressWithLabel.tsx +++ b/plugins/git-release-manager/src/components/ResponseStepDialog/LinearProgressWithLabel.tsx @@ -50,8 +50,9 @@ export function LinearProgressWithLabel(props: { const CompletionEmoji = () => { if (status === STATUSES.ONGOING) return null; - if (status === STATUSES.FAILURE) return {` ${ICONS.FAILURE} `}; - return {` ${ICONS.SUCCESS} `}; + if (status === STATUSES.FAILURE) + return {` ${ICONS.FAILURE} `}; + return {` ${ICONS.SUCCESS} `}; }; return ( diff --git a/plugins/git-release-manager/src/hooks/useResponseSteps.tsx b/plugins/git-release-manager/src/hooks/useResponseSteps.tsx index 3c44a34a0d..583412f2c3 100644 --- a/plugins/git-release-manager/src/hooks/useResponseSteps.tsx +++ b/plugins/git-release-manager/src/hooks/useResponseSteps.tsx @@ -14,6 +14,7 @@ * limitations under the License. */ +import Typography from '@material-ui/core/Typography'; import React, { useState } from 'react'; import { ResponseStep } from '../types/types'; @@ -30,9 +31,9 @@ export function useResponseSteps() { message: ( Something went wrong{' '} - + ๐Ÿ”ฅ - + ), secondaryMessage: `Error message: ${ diff --git a/plugins/home/src/homePageComponents/WelcomeTitle/WelcomeTitle.tsx b/plugins/home/src/homePageComponents/WelcomeTitle/WelcomeTitle.tsx index 40a5361f43..1d2f3d672a 100644 --- a/plugins/home/src/homePageComponents/WelcomeTitle/WelcomeTitle.tsx +++ b/plugins/home/src/homePageComponents/WelcomeTitle/WelcomeTitle.tsx @@ -19,6 +19,7 @@ import { useApi, } from '@backstage/core-plugin-api'; import { Tooltip } from '@material-ui/core'; +import Typography from '@material-ui/core/Typography'; import React, { useEffect, useMemo } from 'react'; import useAsync from 'react-use/lib/useAsync'; import { getTimeBasedGreeting } from './timeUtil'; @@ -43,9 +44,9 @@ export const WelcomeTitle = () => { return ( - {`${greeting.greeting}${ + {`${greeting.greeting}${ profile?.displayName ? `, ${profile?.displayName}` : '' - }!`} + }!`} ); }; diff --git a/plugins/lighthouse/src/components/AuditList/AuditListTable.tsx b/plugins/lighthouse/src/components/AuditList/AuditListTable.tsx index 4701ae157f..9f5fa94436 100644 --- a/plugins/lighthouse/src/components/AuditList/AuditListTable.tsx +++ b/plugins/lighthouse/src/components/AuditList/AuditListTable.tsx @@ -14,6 +14,7 @@ * limitations under the License. */ import React, { useState, useEffect } from 'react'; +import Typography from '@material-ui/core/Typography'; import { Website, lighthouseApiRef } from '../../api'; import useInterval from 'react-use/lib/useInterval'; import { @@ -112,7 +113,9 @@ export const AuditListTable = ({ items }: { items: Website[] }) => { lastReport: ( <> {' '} - {website.lastAudit.status.toLocaleUpperCase('en-US')} + + {website.lastAudit.status.toLocaleUpperCase('en-US')} + ), lastAuditTriggered: formatTime(website.lastAudit.timeCreated), diff --git a/plugins/lighthouse/src/components/Cards/LastLighthouseAuditCard.tsx b/plugins/lighthouse/src/components/Cards/LastLighthouseAuditCard.tsx index 4daeb5177c..1562031007 100644 --- a/plugins/lighthouse/src/components/Cards/LastLighthouseAuditCard.tsx +++ b/plugins/lighthouse/src/components/Cards/LastLighthouseAuditCard.tsx @@ -14,6 +14,7 @@ * limitations under the License. */ import React from 'react'; +import Typography from '@material-ui/core/Typography'; import { Audit, AuditCompleted, LighthouseCategoryId } from '../../api'; import { useWebsiteForEntity } from '../../hooks/useWebsiteForEntity'; import AuditStatusIcon from '../AuditStatusIcon'; @@ -52,7 +53,7 @@ const LighthouseCategoryScoreStatus = (props: { score: number }) => { ); default: - return N/A; + return N/A; } }; diff --git a/plugins/search-react/src/components/DefaultResultListItem/DefaultResultListItem.tsx b/plugins/search-react/src/components/DefaultResultListItem/DefaultResultListItem.tsx index 830cb61780..6158aed008 100644 --- a/plugins/search-react/src/components/DefaultResultListItem/DefaultResultListItem.tsx +++ b/plugins/search-react/src/components/DefaultResultListItem/DefaultResultListItem.tsx @@ -28,6 +28,7 @@ import { Box, Divider, } from '@material-ui/core'; +import Typography from '@material-ui/core/Typography'; import { Link } from '@backstage/core-components'; /** @@ -85,7 +86,8 @@ export const DefaultResultListItemComponent = ({ } secondary={ - + } /> {secondaryAction && {secondaryAction}} diff --git a/plugins/search/src/components/SearchModal/SearchModal.tsx b/plugins/search/src/components/SearchModal/SearchModal.tsx index 9b95a0afaa..956f62a01e 100644 --- a/plugins/search/src/components/SearchModal/SearchModal.tsx +++ b/plugins/search/src/components/SearchModal/SearchModal.tsx @@ -26,6 +26,7 @@ import { Paper, useTheme, } from '@material-ui/core'; +import Typography from '@material-ui/core/Typography'; import LaunchIcon from '@material-ui/icons/Launch'; import { makeStyles } from '@material-ui/core/styles'; import { @@ -131,7 +132,9 @@ export const Modal = ({ toggleModal }: SearchModalProps) => { }} to={`${getSearchLink()}?query=${term}`} > - View Full Results + + View Full Results + diff --git a/plugins/sonarqube/src/components/SonarQubeCard/Value.tsx b/plugins/sonarqube/src/components/SonarQubeCard/Value.tsx index a166f62a89..2f136cc5fe 100644 --- a/plugins/sonarqube/src/components/SonarQubeCard/Value.tsx +++ b/plugins/sonarqube/src/components/SonarQubeCard/Value.tsx @@ -16,6 +16,7 @@ import { BackstageTheme } from '@backstage/theme'; import { makeStyles } from '@material-ui/core/styles'; +import Typography from '@material-ui/core/Typography'; import React from 'react'; const useStyles = makeStyles((theme: BackstageTheme) => { @@ -29,5 +30,9 @@ const useStyles = makeStyles((theme: BackstageTheme) => { export const Value = (props: { value?: string }) => { const classes = useStyles(); - return {props.value}; + return ( + + {props.value} + + ); }; diff --git a/plugins/tech-radar/src/components/RadarLegend/RadarLegendLink.tsx b/plugins/tech-radar/src/components/RadarLegend/RadarLegendLink.tsx index f75f23c12b..32dae8f369 100644 --- a/plugins/tech-radar/src/components/RadarLegend/RadarLegendLink.tsx +++ b/plugins/tech-radar/src/components/RadarLegend/RadarLegendLink.tsx @@ -14,6 +14,7 @@ * limitations under the License. */ import { ClassNameMap } from '@material-ui/core/styles/withStyles'; +import Typography from '@material-ui/core/Typography'; import React from 'react'; import { WithLink } from '../../utils/components'; import { RadarDescription } from '../RadarDescription'; @@ -50,17 +51,18 @@ export const RadarLegendLink = ({ if (description) { return ( <> - - + {title} - - + + {open && ( - + {title} - + ); }; diff --git a/plugins/techdocs/src/search/components/TechDocsSearchResultListItem.tsx b/plugins/techdocs/src/search/components/TechDocsSearchResultListItem.tsx index c7755e8733..800fba2260 100644 --- a/plugins/techdocs/src/search/components/TechDocsSearchResultListItem.tsx +++ b/plugins/techdocs/src/search/components/TechDocsSearchResultListItem.tsx @@ -22,6 +22,7 @@ import { ListItemText, makeStyles, } from '@material-ui/core'; +import Typography from '@material-ui/core/Typography'; import { Link } from '@backstage/core-components'; import { useAnalytics } from '@backstage/core-plugin-api'; import { ResultHighlight } from '@backstage/plugin-search-common'; @@ -137,7 +138,8 @@ export const TechDocsSearchResultListItem = ( } secondary={ - + } /> ); diff --git a/plugins/user-settings/src/components/AuthProviders/ProviderSettingsItem.tsx b/plugins/user-settings/src/components/AuthProviders/ProviderSettingsItem.tsx index a5962d47ab..852af7e78b 100644 --- a/plugins/user-settings/src/components/AuthProviders/ProviderSettingsItem.tsx +++ b/plugins/user-settings/src/components/AuthProviders/ProviderSettingsItem.tsx @@ -89,32 +89,30 @@ export const ProviderSettingsItem = (props: { primary={title} secondary={ - - - - - - - - - - {profile.displayName} - - - {profile.email} - - - {description} - - + + + + + + + + + {profile.displayName} + + + {profile.email} + + + {description} + - + } secondaryTypographyProps={{ noWrap: true, style: { width: '80%' } }}