diff --git a/packages/apps/src/SideBar/index.tsx b/packages/apps/src/SideBar/index.tsx index 4ca479bcba..28397546fa 100644 --- a/packages/apps/src/SideBar/index.tsx +++ b/packages/apps/src/SideBar/index.tsx @@ -6,7 +6,7 @@ import { Routes } from '@polkadot/apps-routing/types'; import React, { useCallback, useMemo, useState } from 'react'; import styled from 'styled-components'; -import { Responsive } from 'semantic-ui-react'; +import Responsive from 'semantic-ui-react/dist/commonjs/addons/Responsive'; import createRoutes from '@polkadot/apps-routing'; import { Button, ChainImg, Icon, Menu, media } from '@polkadot/react-components'; diff --git a/packages/page-js/src/ActionButtons.tsx b/packages/page-js/src/ActionButtons.tsx index c2ab6ae5b5..7efaea67d5 100644 --- a/packages/page-js/src/ActionButtons.tsx +++ b/packages/page-js/src/ActionButtons.tsx @@ -3,8 +3,7 @@ // of the Apache-2.0 license. See the LICENSE file for details. import React, { useCallback, useState } from 'react'; -import { Popup } from 'semantic-ui-react'; -import { Button, Input } from '@polkadot/react-components'; +import { Button, Input, Popup } from '@polkadot/react-components'; import { useTranslation } from './translate'; @@ -51,51 +50,47 @@ function ActionButtons ({ className = '', isCustomExample, isRunning, removeSnip ); return ( -
- {isCustomExample && ( - ('Delete this custom example')} - on='hover' - trigger={ -
+ ); } diff --git a/packages/page-js/src/Playground.tsx b/packages/page-js/src/Playground.tsx index 39a783f3ab..bf4dbc1887 100644 --- a/packages/page-js/src/Playground.tsx +++ b/packages/page-js/src/Playground.tsx @@ -299,7 +299,7 @@ export default React.memo(styled(Playground)` .action-button { position: absolute; - right: 0.25rem; + right: 0.5rem; top: 0.5rem; z-index: 100; }