From 8f81cf8cf56ddc131b382b3b1a41ecb173f96ebf Mon Sep 17 00:00:00 2001 From: Frenkie Nguyen Date: Wed, 25 Dec 2024 09:31:46 +0700 Subject: [PATCH] [Issue-162][Mythical Telegram App] Rename Interface for clarity --- .../src/Popup/Home/LeaderboardTemp/TermAndConditionModal.tsx | 4 ++-- .../src/Popup/Home/LeaderboardTemp/index.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/extension-koni-ui/src/Popup/Home/LeaderboardTemp/TermAndConditionModal.tsx b/packages/extension-koni-ui/src/Popup/Home/LeaderboardTemp/TermAndConditionModal.tsx index 26613fe184..298da4900d 100644 --- a/packages/extension-koni-ui/src/Popup/Home/LeaderboardTemp/TermAndConditionModal.tsx +++ b/packages/extension-koni-ui/src/Popup/Home/LeaderboardTemp/TermAndConditionModal.tsx @@ -14,10 +14,10 @@ import styled from 'styled-components'; interface Props extends ThemeProps { onCancel: VoidFunction; onOk: VoidFunction; - metadata?: Metadata + metadata?: LeaderboardMetadata } -interface Metadata { +export interface LeaderboardMetadata { title: string; content: string; } diff --git a/packages/extension-koni-ui/src/Popup/Home/LeaderboardTemp/index.tsx b/packages/extension-koni-ui/src/Popup/Home/LeaderboardTemp/index.tsx index 7f90cb44d4..ed5d3522ae 100644 --- a/packages/extension-koni-ui/src/Popup/Home/LeaderboardTemp/index.tsx +++ b/packages/extension-koni-ui/src/Popup/Home/LeaderboardTemp/index.tsx @@ -8,7 +8,7 @@ import { LINK_NFL_APP_DOWNLOAD } from '@subwallet/extension-koni-ui/constants'; import { HomeContext } from '@subwallet/extension-koni-ui/contexts/screen/HomeContext'; import { useSetCurrentPage } from '@subwallet/extension-koni-ui/hooks'; import { GameAccountListArea } from '@subwallet/extension-koni-ui/Popup/Home/LeaderboardTemp/GameAccountListArea'; -import { Metadata, TERM_AND_CONDITION_MODAL_ID, TermAndConditionModal } from '@subwallet/extension-koni-ui/Popup/Home/LeaderboardTemp/TermAndConditionModal'; +import { LeaderboardMetadata, TERM_AND_CONDITION_MODAL_ID, TermAndConditionModal } from '@subwallet/extension-koni-ui/Popup/Home/LeaderboardTemp/TermAndConditionModal'; import { TopThreeArea } from '@subwallet/extension-koni-ui/Popup/Home/LeaderboardTemp/TopThreeArea'; import { ThemeProps } from '@subwallet/extension-koni-ui/types'; import { openInNewTab } from '@subwallet/extension-koni-ui/utils'; @@ -185,7 +185,7 @@ const Component = ({ className }: Props): React.ReactElement => {