Skip to content

Commit

Permalink
Manually add changes published to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
Irma12 committed Oct 24, 2024
1 parent a1b5581 commit 6b19236
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 27 deletions.
2 changes: 1 addition & 1 deletion plugins/frontend/backstage-plugin-wiz/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@roadiehq/backstage-plugin-wiz",
"version": "1.0.4",
"version": "1.0.5",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { LineChart } from './LineChart';
import { WIZ_PROJECT_ANNOTATION } from '../constants';
import { useStyles } from '../../style';
import { Typography } from '@material-ui/core';
import wizLogo from '../../assets/wiz-logo.png';

export const IssuesChart = () => {
const api = useApi(wizApiRef);
Expand All @@ -37,13 +38,7 @@ export const IssuesChart = () => {
entity?.metadata.annotations?.[WIZ_PROJECT_ANNOTATION] ?? '';

const WizIcon = () => {
return (
<img
src={require('../../assets/wiz-logo.png')}
alt="WIZ Logo"
className={classes.logo}
/>
);
return <img src={wizLogo} alt="WIZ Logo" className={classes.logo} />;
};

const { value, loading, error } = useAsync(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { BarChart } from '.';
import { WIZ_PROJECT_ANNOTATION } from '../constants';
import { useStyles } from '../../style';
import { Typography } from '@material-ui/core';
import wizLogo from '../../assets/wiz-logo.png';

export const SeverityChart = () => {
const api = useApi(wizApiRef);
Expand All @@ -37,13 +38,7 @@ export const SeverityChart = () => {
entity?.metadata.annotations?.[WIZ_PROJECT_ANNOTATION] ?? '';

const WizIcon = () => {
return (
<img
src={require('../../assets/wiz-logo.png')}
alt="WIZ Logo"
className={classes.logo}
/>
);
return <img src={wizLogo} alt="WIZ Logo" className={classes.logo} />;
};

const { value, loading, error } = useAsync(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import FilterAltOutlinedIcon from '@mui/icons-material/FilterAltOutlined';
import { createTheme, ThemeProvider, ThemeOptions } from '@mui/material/styles';
import { WIZ_PROJECT_ANNOTATION } from '../constants';
import { useStyles } from '../../style';
import wizLogo from '../../assets/wiz-logo.png';

const getCorrectChip = (theme: Theme, severity: string) => {
switch (severity) {
Expand Down Expand Up @@ -245,11 +246,7 @@ export const Issues = () => {
const WizIcon = () => {
return (
<Box pr={1}>
<img
src={require('../../assets/wiz-logo.png')}
alt="WIZ Logo"
className={classes.contentLogo}
/>
<img src={wizLogo} alt="WIZ Logo" className={classes.contentLogo} />
</Box>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
import { useEntity } from '@backstage/plugin-catalog-react';
import { WIZ_PROJECT_ANNOTATION } from '../constants';
import { useStyles } from '../../style';
import wizLogo from '../../assets/wiz-logo.png';

const SeverityIndicator = ({
theme,
Expand Down Expand Up @@ -89,13 +90,7 @@ export const IssuesWidget = () => {
);

const WizIcon = () => {
return (
<img
src={require('../../assets/wiz-logo.png')}
alt="WIZ Logo"
className={classes.logo}
/>
);
return <img src={wizLogo} alt="WIZ Logo" className={classes.logo} />;
};

if (loading) {
Expand Down

0 comments on commit 6b19236

Please sign in to comment.