Disable teleports (no detection on versions) (#9129)

This commit is contained in:
Jaco 2023-03-08 19:43:03 +02:00 committed by GitHub
parent 8628f5494c
commit 9f87f2fbd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -11,7 +11,9 @@ export default function create (t: TFunction): Route {
Component: Modal,
Modal,
display: {
isHidden: false,
// TODO We need to move to XCM v3 at some point, until such time we disable
// this functionality (we really should have kept it until later versions)
isHidden: true,
needsAccounts: true,
needsApi: [
[

View File

@ -1,14 +1,14 @@
// Copyright 2017-2023 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import styledComponents from 'styled-components';
import styledComponents, { StyledInterface } from 'styled-components';
// In styled-components v6, there is a named export which can be used
// directly, i.e. "import { styled } from ..." with no more magic. Until
// such time the cjs vs esm import here is problematic, so we hack around
// the various shapes below
export const styled = (
(styledComponents as unknown as { styled: typeof styledComponents }).styled ||
(styledComponents as unknown as { default: typeof styledComponents }).default ||
styledComponents
(styledComponents as unknown as { styled: StyledInterface }).styled ||
(styledComponents as unknown as { default: StyledInterface }).default ||
styledComponents as unknown as StyledInterface
);