address typescript errors

This commit is contained in:
Fredrik Adelöw
2020-12-02 09:38:30 +01:00
parent bad8990788
commit b4488ddb0b
5 changed files with 61 additions and 46 deletions
@@ -76,7 +76,7 @@ describe('buildMemberOf', () => {
const u: UserEntity = {
apiVersion: 'backstage.io/v1alpha1',
kind: 'User',
metadata: { name },
metadata: { name: 'n' },
spec: { profile: {}, memberOf: ['c'] },
};
+38 -44
View File
@@ -222,16 +222,13 @@ export const useBarChartLabelStyles = makeStyles<BackstageTheme>(theme =>
}),
);
export const useCostInsightsStyles = makeStyles<BackstageTheme>(
(theme: BackstageTheme) =>
createStyles({
h6Subtle: {
...theme.typography.h6,
fontWeight: 'normal',
color: theme.palette.textSubtle,
},
}),
);
export const useCostInsightsStyles = makeStyles<BackstageTheme>(theme => ({
h6Subtle: {
...theme.typography.h6,
fontWeight: 'normal',
color: theme.palette.textSubtle,
},
}));
export const useCostInsightsTabsStyles = makeStyles<BackstageTheme>(
(theme: BackstageTheme) => ({
@@ -310,40 +307,37 @@ export const useCostGrowthStyles = makeStyles<BackstageTheme>(
}),
);
export const useCostGrowthLegendStyles = makeStyles<BackstageTheme>(
(theme: BackstageTheme) =>
createStyles({
h5: {
...theme.typography.h5,
fontWeight: 500,
padding: 0,
},
marker: {
display: 'inherit',
marginRight: theme.spacing(1),
},
helpIcon: {
display: 'inherit',
},
title: {
...theme.typography.overline,
fontWeight: 500,
lineHeight: 0,
marginRight: theme.spacing(1),
color: theme.palette.textSubtle,
},
tooltip: {
display: 'block',
padding: theme.spacing(1),
backgroundColor: theme.palette.navigation.background,
},
tooltipText: {
color: theme.palette.background.default,
fontSize: theme.typography.fontSize,
lineHeight: 1.5,
},
}),
);
export const useCostGrowthLegendStyles = makeStyles<BackstageTheme>(theme => ({
h5: {
...theme.typography.h5,
fontWeight: 500,
padding: 0,
},
marker: {
display: 'inherit',
marginRight: theme.spacing(1),
},
helpIcon: {
display: 'inherit',
},
title: {
...theme.typography.overline,
fontWeight: 500,
lineHeight: 0,
marginRight: theme.spacing(1),
color: theme.palette.textSubtle,
},
tooltip: {
display: 'block',
padding: theme.spacing(1),
backgroundColor: theme.palette.navigation.background,
},
tooltipText: {
color: theme.palette.background.default,
fontSize: theme.typography.fontSize,
lineHeight: 1.5,
},
}));
export const useBarChartStepperStyles = makeStyles<BackstageTheme>(
(theme: BackstageTheme) =>