mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-04 14:12:01 +09:00
F OpenNebula/one#6422: Upgrade iconoir-react library to the latest version (#3760)
Signed-off-by: Miguel E. Ruiz <mruiz@opennebula.io>
This commit is contained in:
1 parent
f3bb947485
commit
75416ea561
60 files changed
+2058
-6323
No files matched your search
@@ -79,7 +79,7 @@
|
||||
- title: Virtual Router Template
|
||||
path: /vrouter-template/:id
|
||||
Component: VrTemplateDetail
|
||||
- title: Create VM group
|
||||
- title: Create VM group
|
||||
path: /vm-group/create
|
||||
Component: CreateVmGroup
|
||||
- title: VM Groups
|
||||
@@ -150,7 +150,7 @@
|
||||
- title: BackupJobs
|
||||
path: /backupjobs
|
||||
sidebar: true
|
||||
icon: ClockOutline
|
||||
icon: Clock
|
||||
Component: BackupJobs
|
||||
- title: BackupJob
|
||||
path: /backupjobs/:id
|
||||
|
||||
Generated
+1964
-6223
File diff suppressed because it is too large.
Load diff
@@ -100,7 +100,7 @@
|
||||
"http": "0.0.1-security",
|
||||
"http-proxy-middleware": "1.0.5",
|
||||
"https": "1.0.0",
|
||||
"iconoir-react": "5.5.2",
|
||||
"iconoir-react": "6.11.0",
|
||||
"immutable": "4.0.0-rc.12",
|
||||
"intersection-observer": "0.11.0",
|
||||
"jimp": "0.22.12",
|
||||
|
||||
@@ -13,9 +13,11 @@
|
||||
* See the License for the specific language governing permissions and *
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
import EditIcon from 'iconoir-react/dist/Edit'
|
||||
import AddIcon from 'iconoir-react/dist/Plus'
|
||||
import TrashIcon from 'iconoir-react/dist/Trash'
|
||||
import {
|
||||
Edit as EditIcon,
|
||||
Plus as AddIcon,
|
||||
Trash as TrashIcon,
|
||||
} from 'iconoir-react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { memo } from 'react'
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import { generatePath, useHistory } from 'react-router-dom'
|
||||
import { SubmitButton } from '@modules/components/FormControl'
|
||||
import {
|
||||
Windows as RdpIcon,
|
||||
TerminalOutline as SshIcon,
|
||||
TerminalTag as SshIcon,
|
||||
AppleImac2021 as VncIcon,
|
||||
} from 'iconoir-react'
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and *
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
import { ClockOutline, Edit, Trash } from 'iconoir-react'
|
||||
import { Clock, Edit, Trash } from 'iconoir-react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { ReactElement, memo, useMemo } from 'react'
|
||||
|
||||
@@ -211,7 +211,7 @@ const CharterButton = memo(({ relative, onSubmit }) => {
|
||||
<ButtonToTriggerForm
|
||||
buttonProps={{
|
||||
'data-cy': VM_ACTIONS.CHARTER_CREATE,
|
||||
icon: <ClockOutline />,
|
||||
icon: <Clock />,
|
||||
tooltip: <Translate word={T.Charter} />,
|
||||
disabled: leases.length <= 0,
|
||||
}}
|
||||
|
||||
@@ -32,7 +32,7 @@ import {
|
||||
ModernTv as VmsIcons,
|
||||
MinusPinAlt as ZoneIcon,
|
||||
Globe as AllIcon,
|
||||
ClockOutline as BackupJobsIcon,
|
||||
Clock as BackupJobsIcon,
|
||||
} from 'iconoir-react'
|
||||
|
||||
import { useMemo, Component } from 'react'
|
||||
|
||||
@@ -32,7 +32,7 @@ import {
|
||||
ModernTv as VmsIcons,
|
||||
MinusPinAlt as ZoneIcon,
|
||||
Globe as AllIcon,
|
||||
ClockOutline as BackupJobsIcon,
|
||||
Clock as BackupJobsIcon,
|
||||
} from 'iconoir-react'
|
||||
|
||||
import { useMemo, Component } from 'react'
|
||||
|
||||
@@ -29,7 +29,7 @@ import {
|
||||
Lock,
|
||||
Server,
|
||||
User,
|
||||
WarningCircledOutline as WarningIcon,
|
||||
WarningCircle as WarningIcon,
|
||||
} from 'iconoir-react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { memo, ReactElement, useMemo } from 'react'
|
||||
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
Group,
|
||||
Server,
|
||||
User,
|
||||
WarningCircledOutline as WarningIcon,
|
||||
WarningCircle as WarningIcon,
|
||||
MinusPinAlt as ZoneIcon,
|
||||
} from 'iconoir-react'
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
Lock,
|
||||
Server,
|
||||
User,
|
||||
WarningCircledOutline as WarningIcon,
|
||||
WarningCircle as WarningIcon,
|
||||
} from 'iconoir-react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { memo, ReactElement, useMemo } from 'react'
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
import { Paper, Stack, Typography, styled, useTheme } from '@mui/material'
|
||||
import { WarningTriangleOutline as WarningIcon } from 'iconoir-react'
|
||||
import { WarningTriangle as WarningIcon } from 'iconoir-react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { memo, useMemo } from 'react'
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
Lock,
|
||||
Network,
|
||||
User,
|
||||
WarningCircledOutline as WarningIcon,
|
||||
WarningCircle as WarningIcon,
|
||||
} from 'iconoir-react'
|
||||
|
||||
import { RESOURCE_NAMES, T, VM } from '@ConstantsModule'
|
||||
|
||||
@@ -17,7 +17,7 @@ import { memo } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
import { Stack, Typography, styled } from '@mui/material'
|
||||
import { WarningCircledOutline as WarningIcon } from 'iconoir-react'
|
||||
import { WarningCircle as WarningIcon } from 'iconoir-react'
|
||||
|
||||
import { Translate } from '@modules/components/HOC'
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
import { memo } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
import { QuestionMarkCircle } from 'iconoir-react'
|
||||
import { HelpCircle } from 'iconoir-react'
|
||||
import { InputAdornment, Typography, Tooltip } from '@mui/material'
|
||||
import { Tr, labelCanBeTranslated } from '@modules/components/HOC'
|
||||
|
||||
@@ -41,7 +41,7 @@ const AdornmentWithTooltip = memo(
|
||||
}
|
||||
>
|
||||
<InputAdornment position={position} style={{ cursor: 'help' }}>
|
||||
{children ?? <QuestionMarkCircle />}
|
||||
{children ?? <HelpCircle />}
|
||||
</InputAdornment>
|
||||
</Tooltip>
|
||||
)
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and *
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
import ConfigurationsIcon from 'iconoir-react/dist/Settings'
|
||||
import { Settings as ConfigurationsIcon } from 'iconoir-react'
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
import { FIELDS } from '@modules/components/Forms/Commons/VNetwork/Tabs/configuration/schema'
|
||||
|
||||
+3
-3
@@ -31,7 +31,7 @@ import TableCell from '@mui/material/TableCell'
|
||||
import TableContainer from '@mui/material/TableContainer'
|
||||
import TableHead from '@mui/material/TableHead'
|
||||
import TableRow from '@mui/material/TableRow'
|
||||
import { DeleteCircledOutline, AddCircledOutline } from 'iconoir-react'
|
||||
import { DeleteCircle, AddCircle } from 'iconoir-react'
|
||||
import { useFieldArray, useForm, FormProvider } from 'react-hook-form'
|
||||
import { yupResolver } from '@hookform/resolvers/yup'
|
||||
|
||||
@@ -121,7 +121,7 @@ const RulesSection = memo(
|
||||
<Button
|
||||
variant="contained"
|
||||
type="submit"
|
||||
startIcon={<AddCircledOutline />}
|
||||
startIcon={<AddCircle />}
|
||||
data-cy={getCyPath('add-rules')}
|
||||
sx={{ mt: '1em' }}
|
||||
>
|
||||
@@ -197,7 +197,7 @@ const RulesSection = memo(
|
||||
</TableCell>
|
||||
<TableCell align="right">
|
||||
<IconButton onClick={() => remove(index)}>
|
||||
<DeleteCircledOutline />
|
||||
<DeleteCircle />
|
||||
</IconButton>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ import ButtonToTriggerForm from '@modules/components/Forms/ButtonToTriggerForm'
|
||||
import { ChangeForm as AddSgForm } from '@modules/components/Forms/SecurityGroups'
|
||||
|
||||
import { STYLE_BUTTONS, T } from '@ConstantsModule'
|
||||
import { Plus as AddIcon } from 'iconoir-react/dist'
|
||||
import { Plus as AddIcon } from 'iconoir-react'
|
||||
|
||||
import { SecurityGroupAPI } from '@FeaturesModule'
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@
|
||||
import PropTypes from 'prop-types'
|
||||
import { useFieldArray } from 'react-hook-form'
|
||||
import { Stack, Typography } from '@mui/material'
|
||||
import AddressesIcon from 'iconoir-react/dist/Menu'
|
||||
import { Menu as AddressesIcon } from 'iconoir-react'
|
||||
|
||||
import { AddressRangeCard } from '@modules/components/Cards'
|
||||
import {
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and *
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
import ContextIcon from 'iconoir-react/dist/Folder'
|
||||
import { Folder as ContextIcon } from 'iconoir-react'
|
||||
import PropTypes from 'prop-types'
|
||||
import {
|
||||
TabType,
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and *
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
import QoSIcon from 'iconoir-react/dist/DataTransferBoth'
|
||||
import { DataTransferBoth as QoSIcon } from 'iconoir-react'
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
import {
|
||||
|
||||
+1
-2
@@ -13,8 +13,7 @@
|
||||
* See the License for the specific language governing permissions and *
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
// import { Stack } from '@mui/material'
|
||||
import SecurityIcon from 'iconoir-react/dist/HistoricShield'
|
||||
import { HistoricShield as SecurityIcon } from 'iconoir-react'
|
||||
import { useFormContext, useWatch } from 'react-hook-form'
|
||||
|
||||
import { SecurityGroupsTable } from '@modules/components/Tables'
|
||||
|
||||
+2
-4
@@ -22,7 +22,7 @@ import {
|
||||
Typography,
|
||||
CardActions,
|
||||
} from '@mui/material'
|
||||
import { DeleteCircledOutline } from 'iconoir-react'
|
||||
import { DeleteCircle } from 'iconoir-react'
|
||||
import { Component } from 'react'
|
||||
import { Tr } from '@modules/components/HOC'
|
||||
import { T } from '@ConstantsModule'
|
||||
@@ -117,9 +117,7 @@ export const AffinityGroup = ({
|
||||
onClick={() => onDeleteGroup(groupIndex, groupType)}
|
||||
sx={{ color: 'error.main', padding: '4px', ml: '4px' }}
|
||||
>
|
||||
<DeleteCircledOutline
|
||||
style={{ width: '26px', height: '26px' }}
|
||||
/>
|
||||
<DeleteCircle style={{ width: '26px', height: '26px' }} />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
|
||||
|
||||
+1
-5
@@ -24,11 +24,7 @@ import {
|
||||
Stack,
|
||||
styled,
|
||||
} from '@mui/material'
|
||||
import {
|
||||
Plus,
|
||||
Trash,
|
||||
WarningCircledOutline as WarningIcon,
|
||||
} from 'iconoir-react'
|
||||
import { Plus, Trash, WarningCircle as WarningIcon } from 'iconoir-react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { forwardRef, JSXElementConstructor, useState } from 'react'
|
||||
|
||||
|
||||
+2
-2
@@ -19,7 +19,7 @@ import { Stack, FormControl, Divider } from '@mui/material'
|
||||
import List from '@mui/material/List'
|
||||
import ListItem from '@mui/material/ListItem'
|
||||
import ListItemText from '@mui/material/ListItemText'
|
||||
import { DeleteCircledOutline, Plus } from 'iconoir-react'
|
||||
import { DeleteCircle, Plus } from 'iconoir-react'
|
||||
import { useFieldArray, useForm, FormProvider } from 'react-hook-form'
|
||||
import { yupResolver } from '@hookform/resolvers/yup'
|
||||
import { FormWithSchema, Legend } from '@modules/components/Forms'
|
||||
@@ -139,7 +139,7 @@ const InputsSection = memo(
|
||||
secondaryAction={
|
||||
<SubmitButton
|
||||
onClick={() => onDelete(index)}
|
||||
icon=<DeleteCircledOutline />
|
||||
icon=<DeleteCircle />
|
||||
disabled={disabledAction}
|
||||
tooltip={tooltip}
|
||||
data-cy={`input-delete-${index}`}
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
import { Stack, Typography } from '@mui/material'
|
||||
import AddressesIcon from 'iconoir-react/dist/Menu'
|
||||
import { Menu as AddressesIcon } from 'iconoir-react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { useFieldArray } from 'react-hook-form'
|
||||
|
||||
|
||||
+1
-2
@@ -13,8 +13,7 @@
|
||||
* See the License for the specific language governing permissions and *
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
// import { Stack } from '@mui/material'
|
||||
import ClusterIcon from 'iconoir-react/dist/Server'
|
||||
import { Server as ClusterIcon } from 'iconoir-react'
|
||||
import { useFormContext, useWatch } from 'react-hook-form'
|
||||
|
||||
import { ClustersTable } from '@modules/components/Tables'
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ import {
|
||||
} from '@modules/components/Forms/VnTemplate/CreateForm/Steps/ExtraConfiguration'
|
||||
import CustomAttributes from '@modules/components/Forms/VnTemplate/CreateForm/Steps/ExtraConfiguration/context/customAttributes'
|
||||
import { FIELDS } from '@modules/components/Forms/VnTemplate/CreateForm/Steps/ExtraConfiguration/context/schema'
|
||||
import ContextIcon from 'iconoir-react/dist/Folder'
|
||||
import { Folder as ContextIcon } from 'iconoir-react'
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
import FormWithSchema from '@modules/components/Forms/FormWithSchema'
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import {
|
||||
SECTIONS,
|
||||
} from '@modules/components/Forms/VnTemplate/CreateForm/Steps/ExtraConfiguration/qos/schema'
|
||||
import { Translate } from '@modules/components/HOC'
|
||||
import QoSIcon from 'iconoir-react/dist/DataTransferBoth'
|
||||
import { DataTransferBoth as QoSIcon } from 'iconoir-react'
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
import FormWithSchema from '@modules/components/Forms/FormWithSchema'
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
import { Stack, Typography } from '@mui/material'
|
||||
import AddressesIcon from 'iconoir-react/dist/Menu'
|
||||
import { Menu as AddressesIcon } from 'iconoir-react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { useFieldArray } from 'react-hook-form'
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ import {
|
||||
} from '@modules/components/Forms/VnTemplate/InstantiateForm/Steps/ExtraConfiguration'
|
||||
import CustomAttributes from '@modules/components/Forms/VnTemplate/InstantiateForm/Steps/ExtraConfiguration/context/customAttributes'
|
||||
import { FIELDS } from '@modules/components/Forms/VnTemplate/InstantiateForm/Steps/ExtraConfiguration/context/schema'
|
||||
import ContextIcon from 'iconoir-react/dist/Folder'
|
||||
import { Folder as ContextIcon } from 'iconoir-react'
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
import FormWithSchema from '@modules/components/Forms/FormWithSchema'
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import { Translate } from '@modules/components/HOC'
|
||||
import { SecurityGroupsTable } from '@modules/components/Tables'
|
||||
import { T } from '@ConstantsModule'
|
||||
import { isRestrictedAttributes } from '@UtilsModule'
|
||||
import SecurityIcon from 'iconoir-react/dist/HistoricShield'
|
||||
import { HistoricShield as SecurityIcon } from 'iconoir-react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { useFormContext, useWatch } from 'react-hook-form'
|
||||
|
||||
|
||||
+2
-2
@@ -17,12 +17,12 @@ import { Component } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { Box, IconButton, Typography, Tooltip } from '@mui/material'
|
||||
import {
|
||||
DeleteCircledOutline as RemoveIcon,
|
||||
DeleteCircle as RemoveIcon,
|
||||
Network as ManagementIcon,
|
||||
IpAddress,
|
||||
HistoricShield as SecurityGroupIcon,
|
||||
Computer as RdpIcon,
|
||||
TerminalSimple as SshIcon,
|
||||
Terminal as SshIcon,
|
||||
} from 'iconoir-react'
|
||||
|
||||
import { Tr } from '@modules/components/HOC'
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ import { useFormContext } from 'react-hook-form'
|
||||
import { Component, useState } from 'react'
|
||||
import UserInputDialog from '@modules/components/Forms/VrTemplate/InstantiateForm/Steps/UserInputs/Node/UserInputDialog'
|
||||
import { Typography, Box, useTheme, Grid } from '@mui/material'
|
||||
import { WarningCircledOutline as MandatoryIcon } from 'iconoir-react'
|
||||
import { WarningCircle as MandatoryIcon } from 'iconoir-react'
|
||||
import { Tr } from '@modules/components/HOC'
|
||||
import { T } from '@ConstantsModule'
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import PropTypes from 'prop-types'
|
||||
|
||||
import {
|
||||
RefreshDouble as RefreshIcon,
|
||||
AddCircledOutline as AddIcon,
|
||||
AddCircle as AddIcon,
|
||||
Search as SearchIcon,
|
||||
} from 'iconoir-react'
|
||||
|
||||
|
||||
@@ -15,10 +15,13 @@
|
||||
* ------------------------------------------------------------------------- */
|
||||
|
||||
import { Component } from 'react'
|
||||
import { NavArrowRight, NavArrowDown } from 'iconoir-react'
|
||||
import {
|
||||
NavArrowRight,
|
||||
NavArrowDown,
|
||||
HelpCircle as HintIcon,
|
||||
} from 'iconoir-react'
|
||||
import { TreeItem } from '@mui/lab'
|
||||
import { Tooltip, Box, Checkbox } from '@mui/material'
|
||||
import HintIcon from 'iconoir-react/dist/QuestionMarkCircle'
|
||||
import { T } from '@ConstantsModule'
|
||||
import { Tr } from '@modules/components/HOC'
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import { useHistory } from 'react-router-dom'
|
||||
|
||||
import { BackupJobAPI, useViews } from '@FeaturesModule'
|
||||
import { ChangeGroupForm, ChangeUserForm } from '@modules/components/Forms/Vm'
|
||||
import { Group, Lock, PlayOutline, Plus, Trash } from 'iconoir-react'
|
||||
import { Group, Lock, Play, Plus, Trash } from 'iconoir-react'
|
||||
|
||||
import { PATH } from '@modules/components/path'
|
||||
import {
|
||||
@@ -109,7 +109,7 @@ const Actions = (props = {}) => {
|
||||
dataCy: `backupjob_${BACKUPJOB_ACTIONS.START}`,
|
||||
tooltip: T.Start,
|
||||
selected: true,
|
||||
icon: PlayOutline,
|
||||
icon: Play,
|
||||
importance: STYLE_BUTTONS.IMPORTANCE.MAIN,
|
||||
size: STYLE_BUTTONS.SIZE.MEDIUM,
|
||||
type: STYLE_BUTTONS.TYPE.FILLED,
|
||||
|
||||
@@ -16,8 +16,7 @@
|
||||
import { ReactElement, useCallback } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
import CheckIcon from 'iconoir-react/dist/Check'
|
||||
import MinusIcon from 'iconoir-react/dist/Minus'
|
||||
import { Check as CheckIcon, Minus as MinusIcon } from 'iconoir-react'
|
||||
import { styled, debounce, Box, Typography, Autocomplete } from '@mui/material'
|
||||
|
||||
import {
|
||||
|
||||
@@ -18,8 +18,7 @@ import { MouseEvent, ReactElement, memo } from 'react'
|
||||
|
||||
import { MuiProvider, SunstoneTheme } from '@ProvidersModule'
|
||||
import { Autocomplete, Box, Tooltip, Typography } from '@mui/material'
|
||||
import CheckIcon from 'iconoir-react/dist/Check'
|
||||
import LockIcon from 'iconoir-react/dist/Lock'
|
||||
import { Check as CheckIcon, Lock as LockIcon } from 'iconoir-react'
|
||||
|
||||
import { AuthAPI } from '@FeaturesModule'
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
import PropTypes from 'prop-types'
|
||||
import { ReactElement } from 'react'
|
||||
import { Stack } from '@mui/material'
|
||||
import SettingsIcon from 'iconoir-react/dist/LabelOutline'
|
||||
import { Settings } from 'iconoir-react'
|
||||
import { UseFiltersInstanceProps } from 'opennebula-react-table'
|
||||
import { T, STYLE_BUTTONS } from '@ConstantsModule'
|
||||
import { Translate } from '@modules/components/HOC'
|
||||
@@ -41,7 +41,7 @@ const GlobalLabel = ({
|
||||
<HeaderPopover
|
||||
key={'label-popover'}
|
||||
id="filter-by-label"
|
||||
icon={<SettingsIcon />}
|
||||
icon={<Settings />}
|
||||
headerTitle={<Translate word={T.Labels} />}
|
||||
buttonLabel={<Translate word={T.Label} />}
|
||||
buttonProps={{
|
||||
|
||||
@@ -31,9 +31,7 @@ import {
|
||||
useTheme,
|
||||
} from '@mui/material'
|
||||
import clsx from 'clsx'
|
||||
import InfoEmpty from 'iconoir-react/dist/InfoEmpty'
|
||||
import RemoveIcon from 'iconoir-react/dist/RemoveSquare'
|
||||
|
||||
import { InfoEmpty, RemoveSquare as RemoveIcon } from 'iconoir-react'
|
||||
import {
|
||||
UseRowSelectRowProps,
|
||||
useFilters,
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* ------------------------------------------------------------------------- */
|
||||
import {
|
||||
CloudDownload,
|
||||
DownloadCircledOutline,
|
||||
DownloadCircle,
|
||||
Group,
|
||||
Lock,
|
||||
MoreVert,
|
||||
@@ -149,7 +149,7 @@ const Actions = (props = {}) => {
|
||||
size: STYLE_BUTTONS.SIZE.MEDIUM,
|
||||
type: STYLE_BUTTONS.TYPE.OUTLINED,
|
||||
selected: { min: 1 },
|
||||
icon: DownloadCircledOutline,
|
||||
icon: DownloadCircle,
|
||||
action: async (apps) => {
|
||||
const urls = await Promise.all(
|
||||
apps.map(({ id }) => downloadApp(id).unwrap())
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
import { Box, Typography } from '@mui/material'
|
||||
import { Group, PlayOutline, Plus, Trash } from 'iconoir-react'
|
||||
import { Group, Play, Plus, Trash } from 'iconoir-react'
|
||||
import { useMemo } from 'react'
|
||||
import { useHistory } from 'react-router-dom'
|
||||
|
||||
@@ -98,7 +98,7 @@ const Actions = (props = {}) => {
|
||||
{
|
||||
accessor: SERVICE_TEMPLATE_ACTIONS.INSTANTIATE_DIALOG,
|
||||
tooltip: T.Instantiate,
|
||||
icon: PlayOutline,
|
||||
icon: Play,
|
||||
selected: { max: 1 },
|
||||
importance: STYLE_BUTTONS.IMPORTANCE.MAIN,
|
||||
size: STYLE_BUTTONS.SIZE.MEDIUM,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and *
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
import { AddCircledOutline, LogOut } from 'iconoir-react'
|
||||
import { AddCircle, LogOut } from 'iconoir-react'
|
||||
import { useMemo } from 'react'
|
||||
|
||||
import {
|
||||
@@ -52,7 +52,7 @@ const Actions = () => {
|
||||
{
|
||||
accessor: SUPPORT_ACTIONS.CREATE_DIALOG,
|
||||
tooltip: T.SubmitRequest,
|
||||
icon: AddCircledOutline,
|
||||
icon: AddCircle,
|
||||
dataCy: `support_${SUPPORT_ACTIONS.CREATE_DIALOG}`,
|
||||
options: [
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
import { Typography } from '@mui/material'
|
||||
import { Cart, Group, Lock, PlayOutline, Plus, Trash } from 'iconoir-react'
|
||||
import { Cart, Group, Lock, Play, Plus, Trash } from 'iconoir-react'
|
||||
import { useMemo } from 'react'
|
||||
import { useHistory } from 'react-router-dom'
|
||||
|
||||
@@ -101,7 +101,7 @@ const Actions = (props = {}) => {
|
||||
{
|
||||
accessor: VM_TEMPLATE_ACTIONS.INSTANTIATE_DIALOG,
|
||||
tooltip: T.Instantiate,
|
||||
icon: PlayOutline,
|
||||
icon: Play,
|
||||
selected: { max: 1 },
|
||||
action: (rows) => {
|
||||
const template = rows?.[0]?.original ?? {}
|
||||
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
Cart,
|
||||
Group,
|
||||
Lock,
|
||||
PlayOutline,
|
||||
Play,
|
||||
Plus,
|
||||
SaveFloppyDisk,
|
||||
Settings,
|
||||
@@ -171,7 +171,7 @@ const Actions = (props = {}) => {
|
||||
size: STYLE_BUTTONS.SIZE.MEDIUM,
|
||||
type: STYLE_BUTTONS.TYPE.FILLED,
|
||||
selected: true,
|
||||
icon: PlayOutline,
|
||||
icon: Play,
|
||||
action: async (rows) => {
|
||||
const ids = rows?.map?.(({ original }) => original?.ID)
|
||||
await Promise.all(
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
import { Typography } from '@mui/material'
|
||||
import { Group, Lock, PlayOutline, Plus, Trash } from 'iconoir-react'
|
||||
import { Group, Lock, Play, Plus, Trash } from 'iconoir-react'
|
||||
import { useMemo } from 'react'
|
||||
import { useHistory } from 'react-router-dom'
|
||||
|
||||
@@ -109,7 +109,7 @@ const Actions = (props = {}) => {
|
||||
accessor: VN_TEMPLATE_ACTIONS.INSTANTIATE_DIALOG,
|
||||
dataCy: `vnettemplate-${VN_TEMPLATE_ACTIONS.INSTANTIATE_DIALOG}`,
|
||||
tooltip: T.Instantiate,
|
||||
icon: PlayOutline,
|
||||
icon: Play,
|
||||
selected: { max: 1 },
|
||||
importance: STYLE_BUTTONS.IMPORTANCE.MAIN,
|
||||
size: STYLE_BUTTONS.SIZE.MEDIUM,
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
import { Typography } from '@mui/material'
|
||||
import { Group, Lock, PlayOutline, Plus, Trash } from 'iconoir-react'
|
||||
import { Group, Lock, Play, Plus, Trash } from 'iconoir-react'
|
||||
import { useMemo } from 'react'
|
||||
import { useHistory } from 'react-router-dom'
|
||||
|
||||
@@ -103,7 +103,7 @@ const Actions = (props = {}) => {
|
||||
{
|
||||
accessor: VROUTER_TEMPLATE_ACTIONS.INSTANTIATE_DIALOG,
|
||||
tooltip: T.Instantiate,
|
||||
icon: PlayOutline,
|
||||
icon: Play,
|
||||
selected: { max: 1 },
|
||||
importance: STYLE_BUTTONS.IMPORTANCE.MAIN,
|
||||
size: STYLE_BUTTONS.SIZE.MEDIUM,
|
||||
|
||||
@@ -19,7 +19,7 @@ import { Tr } from '@modules/components/HOC'
|
||||
import { T } from '@ConstantsModule'
|
||||
import { BackupJobAPI } from '@FeaturesModule'
|
||||
import { jsonToXml } from '@ModelsModule'
|
||||
import Edit from 'iconoir-react/dist/Edit'
|
||||
import { Edit } from 'iconoir-react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { memo } from 'react'
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ import {
|
||||
} from '@mui/material'
|
||||
import { useMemo, ReactElement, useState } from 'react'
|
||||
import { css } from '@emotion/css'
|
||||
import RefreshDouble from 'iconoir-react/dist/RefreshDouble'
|
||||
import { RefreshDouble } from 'iconoir-react'
|
||||
import { generatePath, useHistory } from 'react-router-dom'
|
||||
|
||||
import { PATH } from '@modules/components/path'
|
||||
|
||||
@@ -18,7 +18,7 @@ import { VmsTable } from '@modules/components/Tables'
|
||||
import EmptyTab from '@modules/components/Tabs/EmptyTab'
|
||||
import { T } from '@ConstantsModule'
|
||||
import { SecurityGroupAPI } from '@FeaturesModule'
|
||||
import { CloudDesync, WarningTriangleOutline } from 'iconoir-react'
|
||||
import { CloudDesync, WarningTriangle } from 'iconoir-react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { ReactElement } from 'react'
|
||||
import { generatePath, useHistory } from 'react-router-dom'
|
||||
@@ -48,7 +48,7 @@ const VmsTab = ({ id }) => {
|
||||
{
|
||||
rows: [secGroup?.ERROR_VMS.ID ?? []].flat(),
|
||||
message: T.ErrorUpdatingSecGroups,
|
||||
icon: <WarningTriangleOutline />,
|
||||
icon: <WarningTriangle />,
|
||||
type: 'error',
|
||||
},
|
||||
{
|
||||
|
||||
@@ -37,7 +37,7 @@ import {
|
||||
TransitionRight,
|
||||
NavArrowDown,
|
||||
Refresh,
|
||||
PlayOutline,
|
||||
Play,
|
||||
} from 'iconoir-react'
|
||||
|
||||
import { T, STYLE_BUTTONS } from '@ConstantsModule'
|
||||
@@ -259,7 +259,7 @@ const RolesTab = ({ id }) => {
|
||||
options={{
|
||||
singleButton: {
|
||||
disabled: !selectedRoles?.length > 0,
|
||||
icon: <PlayOutline />,
|
||||
icon: <Play />,
|
||||
'data-cy': 'ResumeRole',
|
||||
title: null,
|
||||
buttonType: 'icon',
|
||||
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
Tooltip,
|
||||
Typography,
|
||||
} from '@mui/material'
|
||||
import { WarningCircledOutline } from 'iconoir-react'
|
||||
import { WarningCircle } from 'iconoir-react'
|
||||
import { Tr } from '@modules/components/HOC'
|
||||
import TabStyles from '@modules/components/Tabs/TabStyles'
|
||||
|
||||
@@ -114,7 +114,7 @@ const Tabs = ({
|
||||
iconPosition="start"
|
||||
icon={
|
||||
error ? (
|
||||
<WarningCircledOutline className={classes.warningIcon} />
|
||||
<WarningCircle className={classes.warningIcon} />
|
||||
) : (
|
||||
Icon && <Icon />
|
||||
)
|
||||
|
||||
@@ -16,8 +16,7 @@
|
||||
import { memo } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
import Trash from 'iconoir-react/dist/Trash'
|
||||
import Edit from 'iconoir-react/dist/Edit'
|
||||
import { Trash, Edit } from 'iconoir-react'
|
||||
|
||||
import ButtonToTriggerForm from '@modules/components/Forms/ButtonToTriggerForm'
|
||||
import { AttachPciForm } from '@modules/components/Forms/Vm'
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* ------------------------------------------------------------------------- */
|
||||
import { ReactElement, useMemo } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import HintIcon from 'iconoir-react/dist/QuestionMarkCircle'
|
||||
import { HelpCircle as HintIcon } from 'iconoir-react'
|
||||
import {
|
||||
Stack,
|
||||
Tooltip,
|
||||
|
||||
@@ -17,12 +17,14 @@ import { memo, useCallback } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { useGeneralApi, VmAPI } from '@FeaturesModule'
|
||||
|
||||
import Trash from 'iconoir-react/dist/Trash'
|
||||
import Edit from 'iconoir-react/dist/Edit'
|
||||
import UndoAction from 'iconoir-react/dist/UndoAction'
|
||||
import SaveActionFloppy from 'iconoir-react/dist/SaveActionFloppy'
|
||||
import Camera from 'iconoir-react/dist/Camera'
|
||||
import Expand from 'iconoir-react/dist/ExpandLines'
|
||||
import {
|
||||
Trash,
|
||||
Edit,
|
||||
UndoAction,
|
||||
SaveActionFloppy,
|
||||
Camera,
|
||||
ExpandLines as Expand,
|
||||
} from 'iconoir-react'
|
||||
|
||||
import ButtonToTriggerForm from '@modules/components/Forms/ButtonToTriggerForm'
|
||||
import {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* ------------------------------------------------------------------------- */
|
||||
import { ReactElement, memo, Fragment } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import ReleaseIcon from 'iconoir-react/dist/PlayOutline'
|
||||
import { Play as ReleaseIcon } from 'iconoir-react'
|
||||
import { Link as RouterLink, generatePath } from 'react-router-dom'
|
||||
import { Stack, Link, Typography } from '@mui/material'
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
} from '@UtilsModule'
|
||||
|
||||
import { Box } from '@mui/material'
|
||||
import { Plus, Trash as DeleteIcon } from 'iconoir-react/dist'
|
||||
import { Plus, Trash as DeleteIcon } from 'iconoir-react'
|
||||
|
||||
import { SecurityGroupAPI, VnAPI, useGeneralApi } from '@FeaturesModule'
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import { ShowbackSettings } from '@modules/containers/Settings/Showback'
|
||||
import { TfaSettings } from '@modules/containers/Settings/Tfa'
|
||||
import { Wrapper } from '@modules/containers/Settings/Wrapper'
|
||||
import {
|
||||
LabelOutline as LabelsIcon,
|
||||
Label as LabelsIcon,
|
||||
Shield as SecurityIcon,
|
||||
Settings as SettingsIcon,
|
||||
ReloadWindow as ShowbackIcon,
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* ------------------------------------------------------------------------- */
|
||||
import { T } from '@ConstantsModule'
|
||||
import { getErrorMessage, jsonToXml } from '@ModelsModule'
|
||||
import { WarningCircledOutline as WarningIcon } from 'iconoir-react'
|
||||
import { WarningCircle as WarningIcon } from 'iconoir-react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { memo, useCallback, useEffect, useState } from 'react'
|
||||
import { TranslateProvider, SubmitButton, Tr } from '@ComponentsModule'
|
||||
|
||||
Reference in new issue
Block a user