Adjust sui imports (non-cjs) (#4245)
This commit is contained in:
parent
2b11e15d51
commit
964995ea1a
@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2020 @polkadot/app-js authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { StrictLabelProps } from 'semantic-ui-react/dist/commonjs/elements/Label';
|
||||
import type { StrictLabelProps } from 'semantic-ui-react';
|
||||
|
||||
export const STORE_EXAMPLES = 'polkadot-app-js-examples';
|
||||
export const STORE_SELECTED = 'polkadot-app-js-selected';
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
// Copyright 2017-2020 @polkadot/app-js authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { LabelProps } from 'semantic-ui-react/dist/commonjs/elements/Label';
|
||||
import type { SemanticShorthandItem } from 'semantic-ui-react/dist/commonjs/generic';
|
||||
import type { LabelProps, SemanticShorthandItem } from 'semantic-ui-react';
|
||||
|
||||
export type LogType = 'error' | 'log';
|
||||
|
||||
|
||||
@ -2,8 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
||||
import SUIButton from 'semantic-ui-react/dist/commonjs/elements/Button/Button';
|
||||
import SUIDropdown, { DropdownProps } from 'semantic-ui-react/dist/commonjs/modules/Dropdown/Dropdown';
|
||||
import { Button as SUIButton, Dropdown as SUIDropdown, DropdownProps } from 'semantic-ui-react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { isUndefined } from '@polkadot/util';
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
import type { VoidFn } from './types';
|
||||
|
||||
import React, { useCallback, useState } from 'react';
|
||||
import SUIInput from 'semantic-ui-react/dist/commonjs/elements/Input/Input';
|
||||
import { Input as SUIInput } from 'semantic-ui-react';
|
||||
|
||||
import { isFunction, isUndefined } from '@polkadot/util';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React from 'react';
|
||||
import Label from 'semantic-ui-react/dist/commonjs/elements/Label/Label';
|
||||
import { Label } from 'semantic-ui-react';
|
||||
|
||||
interface Props {
|
||||
className?: string;
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
// Copyright 2017-2020 @polkadot/react-components authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import SUIMenu from 'semantic-ui-react/dist/commonjs/collections/Menu/Menu';
|
||||
import SUIDivider from 'semantic-ui-react/dist/commonjs/elements/Divider/Divider';
|
||||
import { Divider as SUIDivider, Menu as SUIMenu } from 'semantic-ui-react';
|
||||
|
||||
type MenuDef = typeof SUIMenu & {
|
||||
Divider: typeof SUIDivider;
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
import type { ActionsProps } from './types';
|
||||
|
||||
import React from 'react';
|
||||
import SUIModal from 'semantic-ui-react/dist/commonjs/modules/Modal/Modal';
|
||||
import { Modal as SUIModal } from 'semantic-ui-react';
|
||||
|
||||
import Button from '../Button';
|
||||
import ButtonCancel from '../ButtonCancel';
|
||||
|
||||
@ -5,7 +5,7 @@ import type { ThemeDef } from '@polkadot/react-components/types';
|
||||
import type { ActionsProps, ColumnProps, ModalProps } from './types';
|
||||
|
||||
import React, { useContext } from 'react';
|
||||
import SUIModal from 'semantic-ui-react/dist/commonjs/modules/Modal/Modal';
|
||||
import { Modal as SUIModal } from 'semantic-ui-react';
|
||||
import { ThemeContext } from 'styled-components';
|
||||
|
||||
import Actions from './Actions';
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React from 'react';
|
||||
import SUIPopup, { PopupProps } from 'semantic-ui-react/dist/commonjs/modules/Popup/Popup';
|
||||
import { Popup as SUIPopup, PopupProps } from 'semantic-ui-react';
|
||||
|
||||
interface Props {
|
||||
children: React.ReactNode;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user