Skip to content

Commit

Permalink
[Issue-162][Mythical Telegram App] Rename Interface for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
dungnguyen-art committed Dec 25, 2024
1 parent f373d8c commit 8f81cf8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -185,7 +185,7 @@ const Component = ({ className }: Props): React.ReactElement => {
</div>

<TermAndConditionModal
metadata={leaderboardInfo?.metadata as Metadata}
metadata={leaderboardInfo?.metadata as LeaderboardMetadata}
onCancel={closeTermAndConditionModal}
onOk={closeTermAndConditionModal}
/>
Expand Down

0 comments on commit 8f81cf8

Please sign in to comment.