diff --git a/src/fireedge/src/client/components/Alerts/Error.js b/src/fireedge/src/client/components/Alerts/Error.js
index 8ff0682fe8..95acab7392 100644
--- a/src/fireedge/src/client/components/Alerts/Error.js
+++ b/src/fireedge/src/client/components/Alerts/Error.js
@@ -3,11 +3,12 @@ import PropTypes from 'prop-types'
import { Box } from '@material-ui/core'
import { Alert } from '@material-ui/lab'
+import { Tr } from 'client/components/HOC'
const AlertError = ({ children, ...props }) => (
- {children}
+ {typeof children === 'string' ? Tr(children) : children}
)
diff --git a/src/fireedge/src/client/components/Cards/ProvisionCard.js b/src/fireedge/src/client/components/Cards/ProvisionCard.js
index e24b39606c..5df996ff2b 100644
--- a/src/fireedge/src/client/components/Cards/ProvisionCard.js
+++ b/src/fireedge/src/client/components/Cards/ProvisionCard.js
@@ -46,12 +46,14 @@ const ProvisionCard = memo(
icon={isProvider ? : }
{...(imgAsAvatar
? {
- icon:
+ icon: image && (
+
+ )
}
: { mediaProps: { component: 'img', image, onError } }
)}
diff --git a/src/fireedge/src/client/components/Fab/index.js b/src/fireedge/src/client/components/Fab/index.js
new file mode 100644
index 0000000000..68a13994a0
--- /dev/null
+++ b/src/fireedge/src/client/components/Fab/index.js
@@ -0,0 +1,49 @@
+import * as React from 'react'
+import PropTypes from 'prop-types'
+
+import clsx from 'clsx'
+import { makeStyles, Fab } from '@material-ui/core'
+
+const useStyles = makeStyles(theme => ({
+ root: {
+ transition: '0.5s ease',
+ zIndex: theme.zIndex.appBar,
+ position: 'absolute',
+ bottom: 60,
+ right: theme.spacing(5)
+ }
+}))
+
+const FloatingActionButton = React.memo(
+ ({ icon, className, ...props }) => {
+ const classes = useStyles()
+
+ return (
+
+ {icon}
+
+ )
+ }
+)
+
+FloatingActionButton.propTypes = {
+ icon: PropTypes.node.isRequired,
+ className: PropTypes.string,
+ color: PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary']),
+ disabled: PropTypes.bool,
+ size: PropTypes.oneOf(['large', 'medium', 'small']),
+ variant: PropTypes.oneOf(['extended', 'round'])
+}
+
+FloatingActionButton.defaultProps = {
+ icon: undefined,
+ className: undefined,
+ color: 'primary',
+ disabled: false,
+ size: 'large',
+ variant: 'round'
+}
+
+FloatingActionButton.displayName = 'FloatingActionButton'
+
+export default FloatingActionButton
diff --git a/src/fireedge/src/client/components/FormControl/SubmitButton.js b/src/fireedge/src/client/components/FormControl/SubmitButton.js
index 5258129ece..2b3fbc5ca1 100644
--- a/src/fireedge/src/client/components/FormControl/SubmitButton.js
+++ b/src/fireedge/src/client/components/FormControl/SubmitButton.js
@@ -1,4 +1,4 @@
-import React from 'react'
+import * as React from 'react'
import PropTypes from 'prop-types'
import { makeStyles, CircularProgress, Button, Fab } from '@material-ui/core'
@@ -25,22 +25,25 @@ ButtonComponent.propTypes = {
children: PropTypes.any
}
-const SubmitButton = ({ isSubmitting, label, fab, ...props }) => {
- const classes = useStyles()
+const SubmitButton = React.memo(
+ ({ isSubmitting, label, fab, ...props }) => {
+ const classes = useStyles()
- return (
-
- {isSubmitting && }
- {!isSubmitting && (label ?? Tr(T.Submit))}
-
- )
-}
+ return (
+
+ {isSubmitting && }
+ {!isSubmitting && (label ?? Tr(T.Submit))}
+
+ )
+ },
+ (prev, next) => prev.isSubmitting === next.isSubmitting
+)
SubmitButton.propTypes = {
fab: PropTypes.bool,
diff --git a/src/fireedge/src/client/components/List/ListCards.js b/src/fireedge/src/client/components/List/ListCards/index.js
similarity index 61%
rename from src/fireedge/src/client/components/List/ListCards.js
rename to src/fireedge/src/client/components/List/ListCards/index.js
index 4158aef6ff..28479b9ccf 100644
--- a/src/fireedge/src/client/components/List/ListCards.js
+++ b/src/fireedge/src/client/components/List/ListCards/index.js
@@ -1,29 +1,19 @@
import React, { memo } from 'react'
import PropTypes from 'prop-types'
+import { CSSTransition, TransitionGroup } from 'react-transition-group'
import {
- makeStyles,
- CardActionArea,
- CardContent,
- Card,
- Grid,
- LinearProgress
+ CardActionArea, Card, Grid, LinearProgress, useMediaQuery
} from '@material-ui/core'
import AddIcon from '@material-ui/icons/Add'
-import { EmptyCard } from 'client/components/Cards'
-const useStyles = makeStyles(() => ({
- cardPlus: {
- height: '100%',
- minHeight: 140,
- display: 'flex',
- textAlign: 'center'
- },
- loading: { width: '100%' }
-}))
+import { EmptyCard } from 'client/components/Cards'
+import FloatingActionButton from 'client/components/Fab'
+import listCardsStyles from 'client/components/List/ListCards/styles'
const ListCards = memo(({
list,
+ keyProp,
breakpoints,
handleCreate,
ButtonCreateComponent,
@@ -33,7 +23,8 @@ const ListCards = memo(({
displayEmpty,
isLoading
}) => {
- const classes = useStyles()
+ const classes = listCardsStyles()
+ const isMobile = useMediaQuery(theme => theme.breakpoints.only('xs'))
if (isLoading) {
return
@@ -42,29 +33,38 @@ const ListCards = memo(({
return (
{/* CREATE CARD COMPONENT */}
- {handleCreate && (
-
- {ButtonCreateComponent ? (
-
- ) : (
+ {handleCreate && (ButtonCreateComponent ? (
+
+ ) : (
+ isMobile ? (
+ } onClick={handleCreate} />
+ ) : (
+
-
-
-
+
- )}
-
- )}
+
+ )
+ ))}
{/* LIST */}
{list.length > 0 ? (
- list?.map((value, index) => (
-
-
-
- ))
+
+ {list?.map((value, index) => (
+
+
+
+
+
+ ))}
+
) : (
(displayEmpty || EmptyComponent) && (
@@ -74,12 +74,14 @@ const ListCards = memo(({
)}
)
-})
+}, (prev, next) =>
+ prev.isLoading === next.isLoading && prev.list === next.list)
const gridValues = [false, 'auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
ListCards.propTypes = {
list: PropTypes.arrayOf(PropTypes.any).isRequired,
+ keyProp: PropTypes.string,
breakpoints: PropTypes.shape({
xs: PropTypes.oneOf(gridValues),
sm: PropTypes.oneOf(gridValues),
@@ -110,6 +112,7 @@ ListCards.propTypes = {
ListCards.defaultProps = {
list: [],
+ keyProp: 'id',
breakpoints: { xs: 12, sm: 4, md: 3, lg: 2 },
handleCreate: undefined,
ButtonCreateComponent: undefined,
diff --git a/src/fireedge/src/client/components/List/ListCards/styles.js b/src/fireedge/src/client/components/List/ListCards/styles.js
new file mode 100644
index 0000000000..0350156dea
--- /dev/null
+++ b/src/fireedge/src/client/components/List/ListCards/styles.js
@@ -0,0 +1,23 @@
+import { makeStyles } from '@material-ui/core'
+
+export default makeStyles(() => ({
+ cardPlus: {
+ height: '100%',
+ minHeight: 140,
+ display: 'flex',
+ textAlign: 'center'
+ },
+ loading: { width: '100%' },
+ item: {
+ '&-enter': { opacity: 0 },
+ '&-enter-active': {
+ opacity: 1,
+ transition: 'opacity 400ms ease-in'
+ },
+ '&-exit': { opacity: 1 },
+ '&-exit-active': {
+ opacity: 0,
+ transition: 'opacity 400ms ease-in'
+ }
+ }
+}))
diff --git a/src/fireedge/src/client/components/List/ListHeader.js b/src/fireedge/src/client/components/List/ListHeader.js
deleted file mode 100644
index 525f48b96e..0000000000
--- a/src/fireedge/src/client/components/List/ListHeader.js
+++ /dev/null
@@ -1,57 +0,0 @@
-import React, { memo } from 'react'
-import PropTypes from 'prop-types'
-
-import { makeStyles, Box, Typography, Divider } from '@material-ui/core'
-import RefreshIcon from '@material-ui/icons/Autorenew'
-
-import SubmitButton from 'client/components/FormControl/SubmitButton'
-
-const useStyles = makeStyles(theme => ({
- title: { marginLeft: theme.spacing(1) }
-}))
-
-const ListHeader = memo(({
- title,
- hasReloadButton,
- reloadButtonProps
-}) => {
- const classes = useStyles()
-
- return (
- <>
-
- {hasReloadButton && (
- } {...reloadButtonProps} />
- )}
- {title && (
-
- {title}
-
- )}
-
-
- >
- )
-})
-
-ListHeader.propTypes = {
- title: PropTypes.string,
- hasReloadButton: PropTypes.bool,
- reloadButtonProps: PropTypes.shape({
- onClick: PropTypes.func,
- isSubmitting: PropTypes.bool
- })
-}
-
-ListHeader.defaultProps = {
- title: undefined,
- hasReloadButton: false,
- reloadButtonProps: {
- onClick: undefined,
- isSubmitting: false
- }
-}
-
-ListHeader.displayName = 'ListHeader'
-
-export default ListHeader
diff --git a/src/fireedge/src/client/components/List/ListHeader/index.js b/src/fireedge/src/client/components/List/ListHeader/index.js
new file mode 100644
index 0000000000..ff9cd7316f
--- /dev/null
+++ b/src/fireedge/src/client/components/List/ListHeader/index.js
@@ -0,0 +1,83 @@
+import React, { memo } from 'react'
+import PropTypes from 'prop-types'
+
+import { Box, Typography, InputBase } from '@material-ui/core'
+import SearchIcon from '@material-ui/icons/Search'
+import RefreshIcon from '@material-ui/icons/Autorenew'
+
+import SubmitButton from 'client/components/FormControl/SubmitButton'
+import listHeaderStyles from 'client/components/List/ListHeader/styles'
+import { Tr } from 'client/components/HOC'
+
+const ListHeader = memo(({
+ title,
+ hasReloadButton,
+ reloadButtonProps,
+ hasSearch,
+ searchProps
+}) => {
+ const classes = listHeaderStyles()
+ const { handleChange } = searchProps
+
+ return (
+
+ {hasReloadButton && (
+ } {...reloadButtonProps} />
+ )}
+ {title && (
+
+ {Tr(title)}
+
+ )}
+ {hasSearch && (
+
+
+
+
+
+
+ )}
+
+ )
+}, (prev, next) =>
+ prev?.reloadButtonProps.isSubmitting === next?.reloadButtonProps.isSubmitting)
+
+ListHeader.propTypes = {
+ title: PropTypes.string,
+ hasReloadButton: PropTypes.bool,
+ reloadButtonProps: PropTypes.shape({
+ onClick: PropTypes.func,
+ isSubmitting: PropTypes.bool
+ }),
+ hasSearch: PropTypes.bool,
+ searchProps: PropTypes.shape({
+ query: PropTypes.string,
+ handleChange: PropTypes.func
+ })
+}
+
+ListHeader.defaultProps = {
+ title: undefined,
+ hasReloadButton: false,
+ reloadButtonProps: {
+ onClick: undefined,
+ isSubmitting: false
+ },
+ searchProps: {
+ query: undefined,
+ handleChange: undefined
+ }
+}
+
+ListHeader.displayName = 'ListHeader'
+
+export default ListHeader
diff --git a/src/fireedge/src/client/components/List/ListHeader/styles.js b/src/fireedge/src/client/components/List/ListHeader/styles.js
new file mode 100644
index 0000000000..f6f47c6bed
--- /dev/null
+++ b/src/fireedge/src/client/components/List/ListHeader/styles.js
@@ -0,0 +1,43 @@
+import { makeStyles, fade } from '@material-ui/core'
+
+export default makeStyles(theme => ({
+ root: {
+ display: 'flex',
+ alignItems: 'center',
+ flexWrap: 'wrap'
+ },
+ title: {
+ marginLeft: theme.spacing(1),
+ flexGrow: 1
+ },
+ search: {
+ position: 'relative',
+ borderRadius: theme.shape.borderRadius,
+ backgroundColor: fade(theme.palette.primary.main, 0.15),
+ '&:hover': {
+ backgroundColor: fade(theme.palette.primary.main, 0.25)
+ },
+ margin: theme.spacing(3, 0),
+ width: '100%',
+ [theme.breakpoints.up('sm')]: {
+ marginLeft: theme.spacing(1),
+ width: 'auto'
+ }
+ },
+ searchIcon: {
+ padding: theme.spacing(0, 2),
+ height: '100%',
+ position: 'absolute',
+ pointerEvents: 'none',
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'center'
+ },
+ inputRoot: { color: 'inherit' },
+ inputInput: {
+ padding: theme.spacing(1, 1, 1, 0),
+ // vertical padding + font size from searchIcon
+ paddingLeft: `calc(1em + ${theme.spacing(4)}px)`,
+ width: '100%'
+ }
+}))
diff --git a/src/fireedge/src/client/components/Search/index.js b/src/fireedge/src/client/components/Search/index.js
index f3cd4e4c97..90ead7ed87 100644
--- a/src/fireedge/src/client/components/Search/index.js
+++ b/src/fireedge/src/client/components/Search/index.js
@@ -16,7 +16,7 @@ const Search = ({
const [query, setQuery] = useState('')
const [result, setResult] = useState(undefined)
const listFuse = useMemo(
- () => new Fuse(list, listOptions, Fuse.createIndex(listOptions.keys, list)),
+ () => new Fuse(list, listOptions, Fuse.createIndex(listOptions?.keys, list)),
[list, listOptions]
)
@@ -72,7 +72,7 @@ Search.propTypes = {
Search.defaultProps = {
list: [],
- listOptions: {},
+ listOptions: { keys: [] },
renderResult: item => item,
startAdornment: undefined,
searchBoxProps: undefined
diff --git a/src/fireedge/src/client/containers/ApplicationsInstances/index.js b/src/fireedge/src/client/containers/ApplicationsInstances/index.js
index c03e91d051..a76c3d2a1b 100644
--- a/src/fireedge/src/client/containers/ApplicationsInstances/index.js
+++ b/src/fireedge/src/client/containers/ApplicationsInstances/index.js
@@ -9,11 +9,7 @@ import DialogInfo from 'client/containers/ApplicationsInstances/DialogInfo'
import { ListHeader, ListCards } from 'client/components/List'
import AlertError from 'client/components/Alerts/Error'
import { ApplicationCard, EmptyCard } from 'client/components/Cards'
-
-import { DONE } from 'client/constants/states'
-import { APPLICATION_STATES } from 'client/constants/flow'
-import { Tr } from 'client/components/HOC'
-import { T } from 'client/constants'
+import { T, DONE, APPLICATION_STATES } from 'client/constants'
function ApplicationsInstances () {
const { applications, getApplications } = useApplication()
@@ -33,7 +29,7 @@ function ApplicationsInstances () {
return (
fetchRequest(undefined, { reload: true, delay: 500 }),
@@ -42,9 +38,7 @@ function ApplicationsInstances () {
/>
{error ? (
-
- {Tr(T.CannotConnectOneFlow)}
-
+ {T.CannotConnectOneFlow}
) : (
fetchRequest(undefined, { reload: true, delay: 500 }),
@@ -40,9 +38,7 @@ function ApplicationsTemplates () {
/>
{error ? (
-
- {Tr(T.CannotConnectOneFlow)}
-
+ {T.CannotConnectOneFlow}
) : (
({
return (
}
CardComponent={LocationCard}
cardsProps={({ value: { key } }) => {
diff --git a/src/fireedge/src/client/containers/Providers/Form/Create/Steps/Provider/index.js b/src/fireedge/src/client/containers/Providers/Form/Create/Steps/Provider/index.js
index 3a47ff90fa..c7a2fcc829 100644
--- a/src/fireedge/src/client/containers/Providers/Form/Create/Steps/Provider/index.js
+++ b/src/fireedge/src/client/containers/Providers/Form/Create/Steps/Provider/index.js
@@ -55,6 +55,7 @@ const Provider = () => ({
const isSelected = data?.some(selected => selected === name)
return {
+ id: name.replace(/\s/g, ''),
isProvider: true,
isSelected,
handleClick: () => handleClick(name, isSelected)
diff --git a/src/fireedge/src/client/containers/Providers/index.js b/src/fireedge/src/client/containers/Providers/index.js
index 78aec6a9e0..d1640ebc80 100644
--- a/src/fireedge/src/client/containers/Providers/index.js
+++ b/src/fireedge/src/client/containers/Providers/index.js
@@ -8,6 +8,7 @@ import DeleteIcon from '@material-ui/icons/Delete'
import { PATH } from 'client/router/provision'
import useProvision from 'client/hooks/useProvision'
import useFetch from 'client/hooks/useFetch'
+import useSearch from 'client/hooks/useSearch'
import { ListHeader, ListCards } from 'client/components/List'
import AlertError from 'client/components/Alerts/Error'
@@ -15,39 +16,40 @@ import { ProvisionCard } from 'client/components/Cards'
import { DialogRequest } from 'client/components/Dialogs'
import Information from 'client/containers/Providers/Sections/info'
-
-import { Tr } from 'client/components/HOC'
import { T } from 'client/constants'
function Providers () {
const history = useHistory()
const [showDialog, setShowDialog] = useState(false)
+
const { providers, getProviders, getProvider, deleteProvider } = useProvision()
- const {
- error,
- fetchRequest,
- loading,
- reloading
- } = useFetch(getProviders)
+
+ const { error, fetchRequest, loading, reloading } = useFetch(getProviders)
+ const { result, handleChange } = useSearch({
+ list: providers,
+ listOptions: { shouldSort: true, keys: ['ID', 'NAME'] }
+ })
useEffect(() => { fetchRequest() }, [])
return (
fetchRequest(undefined, { reload: true }),
isSubmitting: Boolean(loading || reloading)
}}
+ hasSearch
+ searchProps={{ handleChange }}
/>
{error ? (
- {Tr(T.CannotConnectOneProvision)}
+ {T.CannotConnectOneProvision}
) : (
history.push(PATH.PROVIDERS.CREATE)}
CardComponent={ProvisionCard}
diff --git a/src/fireedge/src/client/containers/Provisions/Form/Create/Steps/Provision/index.js b/src/fireedge/src/client/containers/Provisions/Form/Create/Steps/Provision/index.js
index 288aae9563..8badf86b98 100644
--- a/src/fireedge/src/client/containers/Provisions/Form/Create/Steps/Provision/index.js
+++ b/src/fireedge/src/client/containers/Provisions/Form/Create/Steps/Provision/index.js
@@ -56,6 +56,7 @@ const Provision = () => ({
const { provision: { provider } = {} } = defaults
return {
+ id: name.replace(/\s/g, ''),
isSelected,
handleClick: () => handleClick(name, provider, isSelected)
}
diff --git a/src/fireedge/src/client/containers/Provisions/index.js b/src/fireedge/src/client/containers/Provisions/index.js
index 3a47ae36bd..916dff7d5c 100644
--- a/src/fireedge/src/client/containers/Provisions/index.js
+++ b/src/fireedge/src/client/containers/Provisions/index.js
@@ -7,6 +7,7 @@ import DeleteIcon from '@material-ui/icons/Delete'
import { PATH } from 'client/router/provision'
import useProvision from 'client/hooks/useProvision'
import useFetch from 'client/hooks/useFetch'
+import useSearch from 'client/hooks/useSearch'
import { ListHeader, ListCards } from 'client/components/List'
import AlertError from 'client/components/Alerts/Error'
@@ -14,41 +15,41 @@ import { ProvisionCard } from 'client/components/Cards'
import { DialogRequest } from 'client/components/Dialogs'
import DialogInfo from 'client/containers/Provisions/DialogInfo'
-import { Tr } from 'client/components/HOC'
import { T } from 'client/constants'
function Provisions () {
const history = useHistory()
const [showDialog, setShowDialog] = useState(false)
- const {
- provisions,
- getProvisions,
- getProvision,
- deleteProvision
- } = useProvision()
+ const { provisions, getProvisions, getProvision, deleteProvision } = useProvision()
const { error, fetchRequest, loading, reloading } = useFetch(getProvisions)
+ const { result, handleChange } = useSearch({
+ list: provisions,
+ listOptions: { shouldSort: true, keys: ['ID', 'NAME'] }
+ })
useEffect(() => { fetchRequest() }, [])
return (
fetchRequest(undefined, { reload: true }),
isSubmitting: Boolean(loading || reloading)
}}
+ hasSearch
+ searchProps={{ handleChange }}
/>
{error ? (
- {Tr(T.CannotConnectOneProvision)}
+ {T.CannotConnectOneProvision}
) : (
0 && loading}
handleCreate={() => history.push(PATH.PROVISIONS.CREATE)}
CardComponent={ProvisionCard}
cardsProps={({ value: { ID, NAME } }) => ({
diff --git a/src/fireedge/src/client/hooks/useAuth.js b/src/fireedge/src/client/hooks/useAuth.js
index 2f4f8f054b..da62dd34b4 100644
--- a/src/fireedge/src/client/hooks/useAuth.js
+++ b/src/fireedge/src/client/hooks/useAuth.js
@@ -111,9 +111,9 @@ export default function useAuth () {
logout,
getAuthInfo,
setPrimaryGroup,
+ isLogged: !!jwt,
authUser,
isOneAdmin: authUser?.ID === ONEADMIN_ID,
- isLogged: Boolean(jwt),
isLoginInProcess,
isLoading,
firstRender,
diff --git a/src/fireedge/src/client/hooks/useNearScreen.js b/src/fireedge/src/client/hooks/useNearScreen.js
index d9ff4a674c..2891cdd721 100644
--- a/src/fireedge/src/client/hooks/useNearScreen.js
+++ b/src/fireedge/src/client/hooks/useNearScreen.js
@@ -10,7 +10,7 @@ const useNearScreen = ({ externalRef, distance, once = true }) => {
const element = externalRef ? externalRef.current : fromRef.current
const onChange = entries => {
- element && entries.forEach(({ isIntersecting }) => {
+ observer && entries.forEach(({ isIntersecting }) => {
if (isIntersecting) {
setShow(true)
once && observer.disconnect()
diff --git a/src/fireedge/src/client/hooks/useSearch.js b/src/fireedge/src/client/hooks/useSearch.js
new file mode 100644
index 0000000000..7f9a4d54a4
--- /dev/null
+++ b/src/fireedge/src/client/hooks/useSearch.js
@@ -0,0 +1,50 @@
+import { useState, useMemo, useCallback } from 'react'
+import PropTypes from 'prop-types'
+
+import { debounce } from '@material-ui/core'
+import Fuse from 'fuse.js'
+
+function useSearch ({ list, listOptions }) {
+ const [query, setQuery] = useState('')
+ const [result, setResult] = useState(undefined)
+
+ const listFuse = useMemo(
+ () => new Fuse(list, listOptions, Fuse.createIndex(listOptions?.keys, list)),
+ [list, listOptions]
+ )
+
+ const debounceResult = useCallback(
+ debounce(value => {
+ const search = listFuse.search(value)?.map(({ item }) => item)
+
+ setResult(value ? search : undefined)
+ }, 1000),
+ [list]
+ )
+
+ const handleChange = event => {
+ const { value: nextValue } = event?.target
+
+ setQuery(nextValue)
+ debounceResult(nextValue)
+ }
+
+ return { query, result, handleChange }
+}
+
+useSearch.propTypes = {
+ list: PropTypes.arrayOf(PropTypes.object).isRequired,
+ listOptions: PropTypes.shape({
+ isCaseSensitive: PropTypes.bool,
+ shouldSort: PropTypes.bool,
+ sortFn: PropTypes.func,
+ keys: PropTypes.arrayOf(PropTypes.string)
+ })
+}
+
+useSearch.defaultProps = {
+ list: [],
+ listOptions: { keys: [] }
+}
+
+export default useSearch
diff --git a/src/fireedge/src/client/theme/defaults.js b/src/fireedge/src/client/theme/defaults.js
index 3cf4e86aae..91a1001f1e 100644
--- a/src/fireedge/src/client/theme/defaults.js
+++ b/src/fireedge/src/client/theme/defaults.js
@@ -67,7 +67,7 @@ export default {
},
'&-enter-active': {
opacity: 1,
- transition: 'opacity 100ms'
+ transition: 'opacity 100ms ease-in'
},
'&-exit': {
opacity: 1,
@@ -75,7 +75,7 @@ export default {
},
'&-exit-active': {
opacity: 0,
- transition: 'opacity 100ms'
+ transition: 'opacity 100ms ease-in'
}
}
}