diff options
author | 2022-07-01 08:30:51 +0200 | |
---|---|---|
committer | 2022-07-01 15:00:55 +0530 | |
commit | c14b7a4473e90a7f40496efcdbd42f25e0165373 (patch) | |
tree | dba89178c019ee95853d47137c2b9ec4cb51bd6f /src/components | |
parent | Trying to check if tagging of submodule works [skip ci] (diff) | |
download | ferdium-app-c14b7a4473e90a7f40496efcdbd42f25e0165373.tar.gz ferdium-app-c14b7a4473e90a7f40496efcdbd42f25e0165373.tar.zst ferdium-app-c14b7a4473e90a7f40496efcdbd42f25e0165373.zip |
chore: correctly export/import ui elements
Diffstat (limited to 'src/components')
32 files changed, 49 insertions, 49 deletions
diff --git a/src/components/AppUpdateInfoBar.tsx b/src/components/AppUpdateInfoBar.tsx index 576da0f85..48efbfb7f 100644 --- a/src/components/AppUpdateInfoBar.tsx +++ b/src/components/AppUpdateInfoBar.tsx | |||
@@ -4,7 +4,7 @@ import { mdiInformation } from '@mdi/js'; | |||
4 | import InfoBar from './ui/InfoBar'; | 4 | import InfoBar from './ui/InfoBar'; |
5 | import { GITHUB_FERDIUM_URL } from '../config'; | 5 | import { GITHUB_FERDIUM_URL } from '../config'; |
6 | import { openExternalUrl } from '../helpers/url-helpers'; | 6 | import { openExternalUrl } from '../helpers/url-helpers'; |
7 | import { Icon } from './ui/icon'; | 7 | import Icon from './ui/icon'; |
8 | 8 | ||
9 | const messages = defineMessages({ | 9 | const messages = defineMessages({ |
10 | updateAvailable: { | 10 | updateAvailable: { |
diff --git a/src/components/auth/AuthLayout.js b/src/components/auth/AuthLayout.js index 21c874c0f..77b91fa1c 100644 --- a/src/components/auth/AuthLayout.js +++ b/src/components/auth/AuthLayout.js | |||
@@ -19,7 +19,7 @@ import globalMessages from '../../i18n/globalMessages'; | |||
19 | import { isWindows } from '../../environment'; | 19 | import { isWindows } from '../../environment'; |
20 | import AppUpdateInfoBar from '../AppUpdateInfoBar'; | 20 | import AppUpdateInfoBar from '../AppUpdateInfoBar'; |
21 | import { GITHUB_FERDIUM_URL } from '../../config'; | 21 | import { GITHUB_FERDIUM_URL } from '../../config'; |
22 | import { Icon } from '../ui/icon'; | 22 | import Icon from '../ui/icon'; |
23 | 23 | ||
24 | class AuthLayout extends Component { | 24 | class AuthLayout extends Component { |
25 | static propTypes = { | 25 | static propTypes = { |
diff --git a/src/components/auth/SetupAssistant.js b/src/components/auth/SetupAssistant.js index 7658eb1ff..e3d2d88d1 100644 --- a/src/components/auth/SetupAssistant.js +++ b/src/components/auth/SetupAssistant.js | |||
@@ -5,11 +5,11 @@ import { defineMessages, injectIntl } from 'react-intl'; | |||
5 | import injectSheet from 'react-jss'; | 5 | import injectSheet from 'react-jss'; |
6 | import classnames from 'classnames'; | 6 | import classnames from 'classnames'; |
7 | 7 | ||
8 | import { Input } from '../ui/input/index'; | 8 | import Input from '../ui/input/index'; |
9 | import Button from '../ui/button'; | 9 | import Button from '../ui/button'; |
10 | import { Badge } from '../ui/badge'; | 10 | import Badge from '../ui/badge'; |
11 | import Modal from '../ui/Modal'; | 11 | import Modal from '../ui/Modal'; |
12 | import * as Infobox from '../ui/Infobox'; | 12 | import Infobox from '../ui/Infobox'; |
13 | import Appear from '../ui/effects/Appear'; | 13 | import Appear from '../ui/effects/Appear'; |
14 | import globalMessages from '../../i18n/globalMessages'; | 14 | import globalMessages from '../../i18n/globalMessages'; |
15 | 15 | ||
diff --git a/src/components/layout/AppLayout.js b/src/components/layout/AppLayout.js index fc3c89fc8..e22d4eb50 100644 --- a/src/components/layout/AppLayout.js +++ b/src/components/layout/AppLayout.js | |||
@@ -20,7 +20,7 @@ import WorkspaceSwitchingIndicator from '../../features/workspaces/components/Wo | |||
20 | import { workspaceStore } from '../../features/workspaces'; | 20 | import { workspaceStore } from '../../features/workspaces'; |
21 | import AppUpdateInfoBar from '../AppUpdateInfoBar'; | 21 | import AppUpdateInfoBar from '../AppUpdateInfoBar'; |
22 | import Todos from '../../features/todos/containers/TodosScreen'; | 22 | import Todos from '../../features/todos/containers/TodosScreen'; |
23 | import { Icon } from '../ui/icon'; | 23 | import Icon from '../ui/icon'; |
24 | 24 | ||
25 | import LockedScreen from '../../containers/auth/LockedScreen'; | 25 | import LockedScreen from '../../containers/auth/LockedScreen'; |
26 | 26 | ||
diff --git a/src/components/layout/Sidebar.jsx b/src/components/layout/Sidebar.jsx index 6949544b4..dd81f4ab5 100644 --- a/src/components/layout/Sidebar.jsx +++ b/src/components/layout/Sidebar.jsx | |||
@@ -32,7 +32,7 @@ import { todoActions } from '../../features/todos/actions'; | |||
32 | import AppStore from '../../stores/AppStore'; | 32 | import AppStore from '../../stores/AppStore'; |
33 | import SettingsStore from '../../stores/SettingsStore'; | 33 | import SettingsStore from '../../stores/SettingsStore'; |
34 | import globalMessages from '../../i18n/globalMessages'; | 34 | import globalMessages from '../../i18n/globalMessages'; |
35 | import { Icon } from '../ui/icon'; | 35 | import Icon from '../ui/icon'; |
36 | 36 | ||
37 | const messages = defineMessages({ | 37 | const messages = defineMessages({ |
38 | addNewService: { | 38 | addNewService: { |
diff --git a/src/components/services/content/ConnectionLostBanner.js b/src/components/services/content/ConnectionLostBanner.js index 4f68c1bfe..f2f70ca2e 100644 --- a/src/components/services/content/ConnectionLostBanner.js +++ b/src/components/services/content/ConnectionLostBanner.js | |||
@@ -6,7 +6,7 @@ import { defineMessages, injectIntl } from 'react-intl'; | |||
6 | 6 | ||
7 | import { mdiAlert } from '@mdi/js'; | 7 | import { mdiAlert } from '@mdi/js'; |
8 | import { LIVE_API_FERDIUM_WEBSITE } from '../../../config'; | 8 | import { LIVE_API_FERDIUM_WEBSITE } from '../../../config'; |
9 | import { Icon } from '../../ui/icon'; | 9 | import Icon from '../../ui/icon'; |
10 | 10 | ||
11 | const messages = defineMessages({ | 11 | const messages = defineMessages({ |
12 | text: { | 12 | text: { |
diff --git a/src/components/services/tabs/TabItem.js b/src/components/services/tabs/TabItem.js index dd5a80e67..9d2b6b333 100644 --- a/src/components/services/tabs/TabItem.js +++ b/src/components/services/tabs/TabItem.js | |||
@@ -14,7 +14,7 @@ import ServiceModel from '../../../models/Service'; | |||
14 | import { cmdOrCtrlShortcutKey, shiftKey, altKey } from '../../../environment'; | 14 | import { cmdOrCtrlShortcutKey, shiftKey, altKey } from '../../../environment'; |
15 | import globalMessages from '../../../i18n/globalMessages'; | 15 | import globalMessages from '../../../i18n/globalMessages'; |
16 | import SettingsStore from '../../../stores/SettingsStore'; | 16 | import SettingsStore from '../../../stores/SettingsStore'; |
17 | import { Icon } from '../../ui/icon'; | 17 | import Icon from '../../ui/icon'; |
18 | 18 | ||
19 | const IS_SERVICE_DEBUGGING_ENABLED = ( | 19 | const IS_SERVICE_DEBUGGING_ENABLED = ( |
20 | localStorage.getItem('debug') || '' | 20 | localStorage.getItem('debug') || '' |
diff --git a/src/components/settings/SettingsLayout.js b/src/components/settings/SettingsLayout.js index de13e95ab..d70f471d5 100644 --- a/src/components/settings/SettingsLayout.js +++ b/src/components/settings/SettingsLayout.js | |||
@@ -7,7 +7,7 @@ import { mdiClose } from '@mdi/js'; | |||
7 | import ErrorBoundary from '../util/ErrorBoundary'; | 7 | import ErrorBoundary from '../util/ErrorBoundary'; |
8 | import { oneOrManyChildElements } from '../../prop-types'; | 8 | import { oneOrManyChildElements } from '../../prop-types'; |
9 | import Appear from '../ui/effects/Appear'; | 9 | import Appear from '../ui/effects/Appear'; |
10 | import { Icon } from '../ui/icon'; | 10 | import Icon from '../ui/icon'; |
11 | 11 | ||
12 | const messages = defineMessages({ | 12 | const messages = defineMessages({ |
13 | closeSettings: { | 13 | closeSettings: { |
diff --git a/src/components/settings/recipes/RecipesDashboard.js b/src/components/settings/recipes/RecipesDashboard.js index f52d068be..c05144117 100644 --- a/src/components/settings/recipes/RecipesDashboard.js +++ b/src/components/settings/recipes/RecipesDashboard.js | |||
@@ -8,8 +8,8 @@ import injectSheet from 'react-jss'; | |||
8 | 8 | ||
9 | import { mdiOpenInNew } from '@mdi/js'; | 9 | import { mdiOpenInNew } from '@mdi/js'; |
10 | import Button from '../../ui/button'; | 10 | import Button from '../../ui/button'; |
11 | import { Input } from '../../ui/input/index'; | 11 | import Input from '../../ui/input/index'; |
12 | import { H3, H2, H1 } from '../../ui/headline'; | 12 | import { H1, H2, H3 } from '../../ui/headline'; |
13 | import SearchInput from '../../ui/SearchInput'; | 13 | import SearchInput from '../../ui/SearchInput'; |
14 | import Infobox from '../../ui/Infobox'; | 14 | import Infobox from '../../ui/Infobox'; |
15 | import RecipeItem from './RecipeItem'; | 15 | import RecipeItem from './RecipeItem'; |
@@ -17,7 +17,7 @@ import Loader from '../../ui/Loader'; | |||
17 | import Appear from '../../ui/effects/Appear'; | 17 | import Appear from '../../ui/effects/Appear'; |
18 | import { FERDIUM_SERVICE_REQUEST } from '../../../config'; | 18 | import { FERDIUM_SERVICE_REQUEST } from '../../../config'; |
19 | import RecipePreview from '../../../models/RecipePreview'; | 19 | import RecipePreview from '../../../models/RecipePreview'; |
20 | import { Icon } from '../../ui/icon'; | 20 | import Icon from '../../ui/icon'; |
21 | 21 | ||
22 | const messages = defineMessages({ | 22 | const messages = defineMessages({ |
23 | headline: { | 23 | headline: { |
diff --git a/src/components/settings/services/EditServiceForm.js b/src/components/settings/services/EditServiceForm.js index e6cd68252..3da0246ac 100644 --- a/src/components/settings/services/EditServiceForm.js +++ b/src/components/settings/services/EditServiceForm.js | |||
@@ -10,7 +10,7 @@ import Form from '../../../lib/Form'; | |||
10 | import Recipe from '../../../models/Recipe'; | 10 | import Recipe from '../../../models/Recipe'; |
11 | import Service from '../../../models/Service'; | 11 | import Service from '../../../models/Service'; |
12 | import Tabs from '../../ui/Tabs/Tabs'; | 12 | import Tabs from '../../ui/Tabs/Tabs'; |
13 | import { TabItem } from '../../ui/Tabs/TabItem'; | 13 | import TabItem from '../../ui/Tabs/TabItem'; |
14 | import Input from '../../ui/Input'; | 14 | import Input from '../../ui/Input'; |
15 | import Toggle from '../../ui/Toggle'; | 15 | import Toggle from '../../ui/Toggle'; |
16 | import Slider from '../../ui/Slider'; | 16 | import Slider from '../../ui/Slider'; |
@@ -20,7 +20,7 @@ import Select from '../../ui/Select'; | |||
20 | 20 | ||
21 | import { isMac } from '../../../environment'; | 21 | import { isMac } from '../../../environment'; |
22 | import globalMessages from '../../../i18n/globalMessages'; | 22 | import globalMessages from '../../../i18n/globalMessages'; |
23 | import { Icon } from '../../ui/icon'; | 23 | import Icon from '../../ui/icon'; |
24 | import { H3 } from '../../ui/headline'; | 24 | import { H3 } from '../../ui/headline'; |
25 | 25 | ||
26 | const messages = defineMessages({ | 26 | const messages = defineMessages({ |
diff --git a/src/components/settings/services/ServiceItem.js b/src/components/settings/services/ServiceItem.js index 23250ad09..c666b7dd2 100644 --- a/src/components/settings/services/ServiceItem.js +++ b/src/components/settings/services/ServiceItem.js | |||
@@ -7,7 +7,7 @@ import classnames from 'classnames'; | |||
7 | 7 | ||
8 | import { mdiBellOff, mdiMessageBulletedOff, mdiPower } from '@mdi/js'; | 8 | import { mdiBellOff, mdiMessageBulletedOff, mdiPower } from '@mdi/js'; |
9 | import ServiceModel from '../../../models/Service'; | 9 | import ServiceModel from '../../../models/Service'; |
10 | import { Icon } from '../../ui/icon'; | 10 | import Icon from '../../ui/icon'; |
11 | 11 | ||
12 | const messages = defineMessages({ | 12 | const messages = defineMessages({ |
13 | tooltipIsDisabled: { | 13 | tooltipIsDisabled: { |
diff --git a/src/components/settings/settings/EditSettingsForm.js b/src/components/settings/settings/EditSettingsForm.js index a8fdea2fb..56d7b8905 100644 --- a/src/components/settings/settings/EditSettingsForm.js +++ b/src/components/settings/settings/EditSettingsForm.js | |||
@@ -31,7 +31,7 @@ import { | |||
31 | } from '../../../environment-remote'; | 31 | } from '../../../environment-remote'; |
32 | import { openPath } from '../../../helpers/url-helpers'; | 32 | import { openPath } from '../../../helpers/url-helpers'; |
33 | import globalMessages from '../../../i18n/globalMessages'; | 33 | import globalMessages from '../../../i18n/globalMessages'; |
34 | import { Icon } from '../../ui/icon'; | 34 | import Icon from '../../ui/icon'; |
35 | import Slider from '../../ui/Slider'; | 35 | import Slider from '../../ui/Slider'; |
36 | 36 | ||
37 | const debug = require('../../../preload-safe-debug')('Ferdium:EditSettingsForm'); | 37 | const debug = require('../../../preload-safe-debug')('Ferdium:EditSettingsForm'); |
diff --git a/src/components/settings/user/EditUserForm.js b/src/components/settings/user/EditUserForm.js index fb9ef5c9a..436a6b76b 100644 --- a/src/components/settings/user/EditUserForm.js +++ b/src/components/settings/user/EditUserForm.js | |||
@@ -4,7 +4,7 @@ import { observer, PropTypes as MobxPropTypes } from 'mobx-react'; | |||
4 | import { defineMessages, injectIntl } from 'react-intl'; | 4 | import { defineMessages, injectIntl } from 'react-intl'; |
5 | import { Link } from 'react-router'; | 5 | import { Link } from 'react-router'; |
6 | 6 | ||
7 | import { Input } from '../../ui/input/index'; | 7 | import Input from '../../ui/input/index'; |
8 | import Form from '../../../lib/Form'; | 8 | import Form from '../../../lib/Form'; |
9 | import Button from '../../ui/button'; | 9 | import Button from '../../ui/button'; |
10 | import Radio from '../../ui/Radio'; | 10 | import Radio from '../../ui/Radio'; |
diff --git a/src/components/ui/ImageUpload.tsx b/src/components/ui/ImageUpload.tsx index c8a6cf54a..3a396f56c 100644 --- a/src/components/ui/ImageUpload.tsx +++ b/src/components/ui/ImageUpload.tsx | |||
@@ -5,7 +5,7 @@ import classnames from 'classnames'; | |||
5 | import Dropzone from 'react-dropzone'; | 5 | import Dropzone from 'react-dropzone'; |
6 | import { mdiDelete, mdiFileImage } from '@mdi/js'; | 6 | import { mdiDelete, mdiFileImage } from '@mdi/js'; |
7 | import { isWindows } from '../../environment'; | 7 | import { isWindows } from '../../environment'; |
8 | import { Icon } from './icon'; | 8 | import Icon from './icon'; |
9 | 9 | ||
10 | type Props = { | 10 | type Props = { |
11 | field: typeof Field; | 11 | field: typeof Field; |
diff --git a/src/components/ui/InfoBar.js b/src/components/ui/InfoBar.js index e50e270bd..d73491da0 100644 --- a/src/components/ui/InfoBar.js +++ b/src/components/ui/InfoBar.js | |||
@@ -7,7 +7,7 @@ import { defineMessages, injectIntl } from 'react-intl'; | |||
7 | 7 | ||
8 | import { mdiClose } from '@mdi/js'; | 8 | import { mdiClose } from '@mdi/js'; |
9 | import Appear from './effects/Appear'; | 9 | import Appear from './effects/Appear'; |
10 | import { Icon } from './icon'; | 10 | import Icon from './icon'; |
11 | 11 | ||
12 | const messages = defineMessages({ | 12 | const messages = defineMessages({ |
13 | hide: { | 13 | hide: { |
diff --git a/src/components/ui/Infobox.js b/src/components/ui/Infobox.js index e05d17742..8fb80d87f 100644 --- a/src/components/ui/Infobox.js +++ b/src/components/ui/Infobox.js | |||
@@ -5,7 +5,7 @@ import classnames from 'classnames'; | |||
5 | import Loader from 'react-loader'; | 5 | import Loader from 'react-loader'; |
6 | import { defineMessages, injectIntl } from 'react-intl'; | 6 | import { defineMessages, injectIntl } from 'react-intl'; |
7 | import { mdiAlert, mdiCheckboxMarkedCircleOutline, mdiClose } from '@mdi/js'; | 7 | import { mdiAlert, mdiCheckboxMarkedCircleOutline, mdiClose } from '@mdi/js'; |
8 | import { Icon } from '../ui/icon'; | 8 | import Icon from '../ui/icon'; |
9 | 9 | ||
10 | const icons = { | 10 | const icons = { |
11 | 'checkbox-marked-circle-outline': mdiCheckboxMarkedCircleOutline, | 11 | 'checkbox-marked-circle-outline': mdiCheckboxMarkedCircleOutline, |
diff --git a/src/components/ui/Input.js b/src/components/ui/Input.js index 77bae8101..ae14493ca 100644 --- a/src/components/ui/Input.js +++ b/src/components/ui/Input.js | |||
@@ -7,7 +7,7 @@ import { defineMessages, injectIntl } from 'react-intl'; | |||
7 | 7 | ||
8 | import { mdiEye, mdiEyeOff } from '@mdi/js'; | 8 | import { mdiEye, mdiEyeOff } from '@mdi/js'; |
9 | import { scorePassword as scorePasswordFunc } from '../../helpers/password-helpers'; | 9 | import { scorePassword as scorePasswordFunc } from '../../helpers/password-helpers'; |
10 | import { Icon } from './icon'; | 10 | import Icon from './icon'; |
11 | 11 | ||
12 | const messages = defineMessages({ | 12 | const messages = defineMessages({ |
13 | passwordToggle: { | 13 | passwordToggle: { |
diff --git a/src/components/ui/Modal/index.tsx b/src/components/ui/Modal/index.tsx index c3c78b419..7407a686d 100644 --- a/src/components/ui/Modal/index.tsx +++ b/src/components/ui/Modal/index.tsx | |||
@@ -4,7 +4,7 @@ import classnames from 'classnames'; | |||
4 | import injectCSS from 'react-jss'; | 4 | import injectCSS from 'react-jss'; |
5 | import { mdiClose } from '@mdi/js'; | 5 | import { mdiClose } from '@mdi/js'; |
6 | 6 | ||
7 | import { Icon } from '../icon'; | 7 | import Icon from '../icon'; |
8 | import styles from './styles'; | 8 | import styles from './styles'; |
9 | 9 | ||
10 | type Props = { | 10 | type Props = { |
diff --git a/src/components/ui/SearchInput.tsx b/src/components/ui/SearchInput.tsx index 67ca469f0..6a8c4de8f 100644 --- a/src/components/ui/SearchInput.tsx +++ b/src/components/ui/SearchInput.tsx | |||
@@ -3,7 +3,7 @@ import { observer } from 'mobx-react'; | |||
3 | import classnames from 'classnames'; | 3 | import classnames from 'classnames'; |
4 | import { debounce } from 'lodash'; | 4 | import { debounce } from 'lodash'; |
5 | import { mdiCloseCircleOutline, mdiMagnify } from '@mdi/js'; | 5 | import { mdiCloseCircleOutline, mdiMagnify } from '@mdi/js'; |
6 | import { Icon } from './icon'; | 6 | import Icon from './icon'; |
7 | 7 | ||
8 | type Props = { | 8 | type Props = { |
9 | value: string; | 9 | value: string; |
diff --git a/src/components/ui/Tabs/TabItem.tsx b/src/components/ui/Tabs/TabItem.tsx index 9fcc3c41e..631586d62 100644 --- a/src/components/ui/Tabs/TabItem.tsx +++ b/src/components/ui/Tabs/TabItem.tsx | |||
@@ -1 +1 @@ | |||
export const TabItem = ({ children }) => <>{children}</>; | export default ({ children }) => <>{children}</>; | ||
diff --git a/src/components/ui/badge/ProBadge.tsx b/src/components/ui/badge/ProBadge.tsx index 410748a64..62c45b77c 100644 --- a/src/components/ui/badge/ProBadge.tsx +++ b/src/components/ui/badge/ProBadge.tsx | |||
@@ -4,8 +4,8 @@ import { Component } from 'react'; | |||
4 | import injectStyle, { WithStylesProps } from 'react-jss'; | 4 | import injectStyle, { WithStylesProps } from 'react-jss'; |
5 | 5 | ||
6 | import { Theme } from '../../../themes'; | 6 | import { Theme } from '../../../themes'; |
7 | import { Icon } from '../icon'; | 7 | import Icon from '../icon'; |
8 | import { Badge } from './index'; | 8 | import Badge from './index'; |
9 | 9 | ||
10 | interface IProps extends WithStylesProps<typeof styles> { | 10 | interface IProps extends WithStylesProps<typeof styles> { |
11 | badgeClasses?: string; | 11 | badgeClasses?: string; |
diff --git a/src/components/ui/badge/index.tsx b/src/components/ui/badge/index.tsx index a7ed866a5..33e2f5d53 100644 --- a/src/components/ui/badge/index.tsx +++ b/src/components/ui/badge/index.tsx | |||
@@ -67,4 +67,4 @@ class BadgeComponent extends Component<IProps> { | |||
67 | } | 67 | } |
68 | } | 68 | } |
69 | 69 | ||
70 | export const Badge = injectStyle(styles, { injectTheme: true })(BadgeComponent); | 70 | export default injectStyle(styles, { injectTheme: true })(BadgeComponent); |
diff --git a/src/components/ui/error/index.tsx b/src/components/ui/error/index.tsx index ff3bc31c6..01fb5ca27 100644 --- a/src/components/ui/error/index.tsx +++ b/src/components/ui/error/index.tsx | |||
@@ -17,4 +17,4 @@ class ErrorComponent extends Component<IProps> { | |||
17 | } | 17 | } |
18 | } | 18 | } |
19 | 19 | ||
20 | export const Error = injectSheet(styles, { injectTheme: true })(ErrorComponent); | 20 | export default injectSheet(styles, { injectTheme: true })(ErrorComponent); |
diff --git a/src/components/ui/icon/index.tsx b/src/components/ui/icon/index.tsx index 52f61d2d7..7e13b98c7 100644 --- a/src/components/ui/icon/index.tsx +++ b/src/components/ui/icon/index.tsx | |||
@@ -42,4 +42,4 @@ class IconComponent extends Component<IProps> { | |||
42 | } | 42 | } |
43 | } | 43 | } |
44 | 44 | ||
45 | export const Icon = injectStyle(styles, { injectTheme: true })(IconComponent); | 45 | export default injectStyle(styles, { injectTheme: true })(IconComponent); |
diff --git a/src/components/ui/infobox/index.tsx b/src/components/ui/infobox/index.tsx index 9635941cc..91ef88747 100644 --- a/src/components/ui/infobox/index.tsx +++ b/src/components/ui/infobox/index.tsx | |||
@@ -4,7 +4,7 @@ import { Component, ReactNode } from 'react'; | |||
4 | import injectStyle, { WithStylesProps } from 'react-jss'; | 4 | import injectStyle, { WithStylesProps } from 'react-jss'; |
5 | 5 | ||
6 | import { Theme } from '../../../themes'; | 6 | import { Theme } from '../../../themes'; |
7 | import { Icon } from '../icon'; | 7 | import Icon from '../icon'; |
8 | 8 | ||
9 | interface IProps extends WithStylesProps<typeof styles> { | 9 | interface IProps extends WithStylesProps<typeof styles> { |
10 | icon?: string; | 10 | icon?: string; |
@@ -199,6 +199,6 @@ class InfoboxComponent extends Component<IProps, IState> { | |||
199 | } | 199 | } |
200 | } | 200 | } |
201 | 201 | ||
202 | export const Infobox = injectStyle(styles, { injectTheme: true })( | 202 | export default injectStyle(styles, { injectTheme: true })( |
203 | InfoboxComponent, | 203 | InfoboxComponent, |
204 | ); | 204 | ); |
diff --git a/src/components/ui/input/index.tsx b/src/components/ui/input/index.tsx index bfbee33b9..aa282cce0 100644 --- a/src/components/ui/input/index.tsx +++ b/src/components/ui/input/index.tsx | |||
@@ -6,9 +6,9 @@ import injectSheet, { WithStylesProps } from 'react-jss'; | |||
6 | 6 | ||
7 | import { IFormField } from '../typings/generic'; | 7 | import { IFormField } from '../typings/generic'; |
8 | 8 | ||
9 | import { Error } from '../error'; | 9 | import Error from '../error'; |
10 | import { Label } from '../label'; | 10 | import Label from '../label'; |
11 | import { Wrapper } from '../wrapper'; | 11 | import Wrapper from '../wrapper'; |
12 | import { scorePasswordFunc } from './scorePassword'; | 12 | import { scorePasswordFunc } from './scorePassword'; |
13 | 13 | ||
14 | import styles from './styles'; | 14 | import styles from './styles'; |
@@ -205,4 +205,4 @@ class InputComponent extends Component<IProps, IState> { | |||
205 | } | 205 | } |
206 | } | 206 | } |
207 | 207 | ||
208 | export const Input = injectSheet(styles, { injectTheme: true })(InputComponent); | 208 | export default injectSheet(styles, { injectTheme: true })(InputComponent); |
diff --git a/src/components/ui/label/index.tsx b/src/components/ui/label/index.tsx index dcc14bff4..5f5cc5c8e 100644 --- a/src/components/ui/label/index.tsx +++ b/src/components/ui/label/index.tsx | |||
@@ -50,4 +50,4 @@ class LabelComponent extends Component<ILabel> { | |||
50 | } | 50 | } |
51 | } | 51 | } |
52 | 52 | ||
53 | export const Label = injectSheet(styles, { injectTheme: true })(LabelComponent); | 53 | export default injectSheet(styles, { injectTheme: true })(LabelComponent); |
diff --git a/src/components/ui/loader/index.tsx b/src/components/ui/loader/index.tsx index d56995ccc..4d52f320e 100644 --- a/src/components/ui/loader/index.tsx +++ b/src/components/ui/loader/index.tsx | |||
@@ -41,6 +41,6 @@ class LoaderComponent extends Component<IProps> { | |||
41 | } | 41 | } |
42 | } | 42 | } |
43 | 43 | ||
44 | export const Loader = injectStyle(styles, { injectTheme: true })( | 44 | export default injectStyle(styles, { injectTheme: true })( |
45 | LoaderComponent, | 45 | LoaderComponent, |
46 | ); | 46 | ); |
diff --git a/src/components/ui/select/index.tsx b/src/components/ui/select/index.tsx index ac509aa7c..c3b5314e3 100644 --- a/src/components/ui/select/index.tsx +++ b/src/components/ui/select/index.tsx | |||
@@ -11,9 +11,9 @@ import injectStyle, { WithStylesProps } from 'react-jss'; | |||
11 | import { Theme } from '../../../themes'; | 11 | import { Theme } from '../../../themes'; |
12 | import { IFormField } from '../typings/generic'; | 12 | import { IFormField } from '../typings/generic'; |
13 | 13 | ||
14 | import { Error } from '../error'; | 14 | import Error from '../error'; |
15 | import { Label } from '../label'; | 15 | import Label from '../label'; |
16 | import { Wrapper } from '../wrapper'; | 16 | import Wrapper from '../wrapper'; |
17 | 17 | ||
18 | interface IOptions { | 18 | interface IOptions { |
19 | [index: string]: string; | 19 | [index: string]: string; |
diff --git a/src/components/ui/textarea/index.tsx b/src/components/ui/textarea/index.tsx index 34ec4cf4b..e005767f8 100644 --- a/src/components/ui/textarea/index.tsx +++ b/src/components/ui/textarea/index.tsx | |||
@@ -4,9 +4,9 @@ import injectSheet, { WithStylesProps } from 'react-jss'; | |||
4 | 4 | ||
5 | import { IFormField } from '../typings/generic'; | 5 | import { IFormField } from '../typings/generic'; |
6 | 6 | ||
7 | import { Error } from '../error'; | 7 | import Error from '../error'; |
8 | import { Label } from '../label'; | 8 | import Label from '../label'; |
9 | import { Wrapper } from '../wrapper'; | 9 | import Wrapper from '../wrapper'; |
10 | 10 | ||
11 | import styles from './styles'; | 11 | import styles from './styles'; |
12 | 12 | ||
diff --git a/src/components/ui/toggle/index.tsx b/src/components/ui/toggle/index.tsx index 856581a21..0629d1a2c 100644 --- a/src/components/ui/toggle/index.tsx +++ b/src/components/ui/toggle/index.tsx | |||
@@ -6,9 +6,9 @@ import injectStyle, { WithStylesProps } from 'react-jss'; | |||
6 | import { Theme } from '../../../themes'; | 6 | import { Theme } from '../../../themes'; |
7 | import { IFormField } from '../typings/generic'; | 7 | import { IFormField } from '../typings/generic'; |
8 | 8 | ||
9 | import { Error } from '../error'; | 9 | import Error from '../error'; |
10 | import { Label } from '../label'; | 10 | import Label from '../label'; |
11 | import { Wrapper } from '../wrapper'; | 11 | import Wrapper from '../wrapper'; |
12 | 12 | ||
13 | interface IProps | 13 | interface IProps |
14 | extends InputHTMLAttributes<HTMLInputElement>, | 14 | extends InputHTMLAttributes<HTMLInputElement>, |
@@ -122,6 +122,6 @@ class ToggleComponent extends Component<IProps> { | |||
122 | } | 122 | } |
123 | } | 123 | } |
124 | 124 | ||
125 | export const Toggle = injectStyle(styles, { injectTheme: true })( | 125 | export default injectStyle(styles, { injectTheme: true })( |
126 | ToggleComponent, | 126 | ToggleComponent, |
127 | ); | 127 | ); |
diff --git a/src/components/ui/wrapper/index.tsx b/src/components/ui/wrapper/index.tsx index bc385d319..e7477a25c 100644 --- a/src/components/ui/wrapper/index.tsx +++ b/src/components/ui/wrapper/index.tsx | |||
@@ -33,6 +33,6 @@ class WrapperComponent extends Component<IProps> { | |||
33 | } | 33 | } |
34 | } | 34 | } |
35 | 35 | ||
36 | export const Wrapper = injectStyle(styles, { injectTheme: true })( | 36 | export default injectStyle(styles, { injectTheme: true })( |
37 | WrapperComponent, | 37 | WrapperComponent, |
38 | ); | 38 | ); |