diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2022-03-18 13:30:08 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2022-04-05 13:46:33 +0200 |
| commit | 831dafd4513084c758d3b70587a9b7fecce2c100 (patch) | |
| tree | 9d0eed5a012cf77cde882f4b97f014a2ac487b48 /opendc-web/opendc-web-ui/src/components/topologies | |
| parent | af87540d49d58c465f0847c016814d58cfeb44fc (diff) | |
fix(web/ui): Do not use next/image
This change removes the use of next/image from the project. Although it
is recommended by the Next.js project to use this component, it is not
compatible currently with static export.
Diffstat (limited to 'opendc-web/opendc-web-ui/src/components/topologies')
| -rw-r--r-- | opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js b/opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js index 921622d6..8897f2d0 100644 --- a/opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js +++ b/opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js @@ -1,14 +1,13 @@ import PropTypes from 'prop-types' import React from 'react' -import Image from 'next/image' import { Flex, Label } from '@patternfly/react-core' import { Machine } from '../../../../shapes' const UnitIcon = ({ id, type }) => ( - <Image + // eslint-disable-next-line @next/next/no-img-element + <img src={'/img/topology/' + id + '-icon.png'} alt={'Machine contains ' + type + ' units'} - layout="intrinsic" height={24} width={24} /> |
