Disable teleports (no detection on versions) (#9129)
This commit is contained in:
parent
8628f5494c
commit
9f87f2fbd2
@ -11,7 +11,9 @@ export default function create (t: TFunction): Route {
|
|||||||
Component: Modal,
|
Component: Modal,
|
||||||
Modal,
|
Modal,
|
||||||
display: {
|
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,
|
needsAccounts: true,
|
||||||
needsApi: [
|
needsApi: [
|
||||||
[
|
[
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
// Copyright 2017-2023 @polkadot/react-components authors & contributors
|
// Copyright 2017-2023 @polkadot/react-components authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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
|
// In styled-components v6, there is a named export which can be used
|
||||||
// directly, i.e. "import { styled } from ..." with no more magic. Until
|
// 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
|
// such time the cjs vs esm import here is problematic, so we hack around
|
||||||
// the various shapes below
|
// the various shapes below
|
||||||
export const styled = (
|
export const styled = (
|
||||||
(styledComponents as unknown as { styled: typeof styledComponents }).styled ||
|
(styledComponents as unknown as { styled: StyledInterface }).styled ||
|
||||||
(styledComponents as unknown as { default: typeof styledComponents }).default ||
|
(styledComponents as unknown as { default: StyledInterface }).default ||
|
||||||
styledComponents
|
styledComponents as unknown as StyledInterface
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user