From 5ff6e1e78de742b8338b74c8b4834f791625e5ab Mon Sep 17 00:00:00 2001 From: Fernando Porazzi Date: Tue, 17 May 2022 22:27:12 +0200 Subject: [PATCH 1/4] Migrate ExchangeSummaryDialog to Dialogs folder This commit migrates the ExchangeSummaryDialog component to the dialogs folder whilst converting it to Typescript --- frontend/src/components/BottomBar.js | 127 ++----------- .../Dialogs/ExchangeSummaryDialog.tsx | 169 ++++++++++++++++++ frontend/src/components/Dialogs/index.ts | 1 + 3 files changed, 188 insertions(+), 109 deletions(-) create mode 100644 frontend/src/components/Dialogs/ExchangeSummaryDialog.tsx diff --git a/frontend/src/components/BottomBar.js b/frontend/src/components/BottomBar.js index d715e327..80c33e97 100644 --- a/frontend/src/components/BottomBar.js +++ b/frontend/src/components/BottomBar.js @@ -28,7 +28,7 @@ import EmojiEventsIcon from '@mui/icons-material/EmojiEvents'; import FavoriteIcon from '@mui/icons-material/Favorite'; import { AmbossIcon , BitcoinSignIcon} from "./Icons"; -import { CommunityDialog } from './Dialogs'; +import { CommunityDialog, ExchangeSummaryDialog } from './Dialogs'; import { getCookie } from "../utils/cookies"; import { pn } from "../utils/prettyNumbers"; @@ -73,7 +73,7 @@ class BottomBar extends Component { this.setState(null) fetch('/api/info/') .then((response) => response.json()) - .then((data) => this.setState(data) + .then((data) => this.setState(data) & this.setState({active_order_id: data.active_order_id ? data.active_order_id : null, last_order_id: data.last_order_id ? data.last_order_id : null}) & this.props.setAppState({nickname:data.nickname, loading:false})); @@ -419,14 +419,13 @@ bottomBarDesktop =()=>{ {this.StatsDialog()} {this.dialogProfile()} - {this.exchangeSummaryDialog()}
- @@ -576,108 +575,6 @@ bottomBarDesktop =()=>{ this.setState({openExchangeSummary: false}); }; - exchangeSummaryDialog =() =>{ - const { t } = this.props; - return( - - - {t("Exchange Summary")} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {(this.state.maker_fee*100).toFixed(3)}% - - - - - {(this.state.taker_fee*100).toFixed(3)}% - - - - - - - - - ) - } - bottomBarPhone =()=>{ const { t } = this.props; var hasRewards = this.state.earned_rewards > 0 ? true: false; @@ -685,13 +582,12 @@ bottomBarPhone =()=>{ return( {this.StatsDialog()} - {this.exchangeSummaryDialog()} {this.dialogProfile()}
- @@ -787,6 +683,19 @@ bottomBarPhone =()=>{ isOpen={this.state.openCommuniy} handleClickCloseCommunity={this.handleClickCloseCommunity} /> + + + {this.bottomBarDesktop()} diff --git a/frontend/src/components/Dialogs/ExchangeSummaryDialog.tsx b/frontend/src/components/Dialogs/ExchangeSummaryDialog.tsx new file mode 100644 index 00000000..3b759ec9 --- /dev/null +++ b/frontend/src/components/Dialogs/ExchangeSummaryDialog.tsx @@ -0,0 +1,169 @@ +import React from "react"; +import { useTranslation } from "react-i18next"; + +import { + Dialog, + DialogContent, + Divider, + Grid, + List, + ListItemText, + ListItem, + ListItemIcon, + Typography, +} from "@mui/material"; + +import InventoryIcon from '@mui/icons-material/Inventory'; +import SellIcon from '@mui/icons-material/Sell'; +import SmartToyIcon from '@mui/icons-material/SmartToy'; +import PercentIcon from '@mui/icons-material/Percent'; +import PriceChangeIcon from '@mui/icons-material/PriceChange'; +import BookIcon from '@mui/icons-material/Book'; + +import { pn } from "../../utils/prettyNumbers"; + +type Props = { + isOpen: boolean; + handleClickCloseExchangeSummary: () => void; + numPublicBuyOrders: number; + numPublicSellOrders: number; + bookLiquidity: number; + activeRobotsToday: number; + lastDayNonkycBtcPremium: number; + makerFee: number; + takerFee: number; +} + +const ExchangeSummaryDialog = ({ + isOpen, + handleClickCloseExchangeSummary, + numPublicBuyOrders, + numPublicSellOrders, + bookLiquidity, + activeRobotsToday, + lastDayNonkycBtcPremium, + makerFee, + takerFee, +}: Props): JSX.Element => { + const { t } = useTranslation(); + + return ( + + + {t("Exchange Summary")} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {(makerFee * 100).toFixed(3)}% + + + + + + {(takerFee * 100).toFixed(3)}% + + + + + + + + ); +}; + +export default ExchangeSummaryDialog; diff --git a/frontend/src/components/Dialogs/index.ts b/frontend/src/components/Dialogs/index.ts index 518f5c9e..96597467 100644 --- a/frontend/src/components/Dialogs/index.ts +++ b/frontend/src/components/Dialogs/index.ts @@ -3,4 +3,5 @@ export { default as InfoDialog } from "./Info"; export { default as LearnDialog } from "./Learn"; export { default as NoRobotDialog } from "./NoRobot"; export { default as StoreTokenDialog } from "./StoreToken"; +export { default as ExchangeSummaryDialog } from "./ExchangeSummaryDialog"; From 04e13d50fda99586e33915bcd33f1d6a9f3d9681 Mon Sep 17 00:00:00 2001 From: Fernando Porazzi Date: Wed, 18 May 2022 11:17:25 +0200 Subject: [PATCH 2/4] Migrate ProfileDialog to Dialogs folder Convert ProfileDialog component to Typescript and co-locate it inside the dialogs folder --- frontend/src/components/BottomBar.js | 209 ++--------- .../src/components/Dialogs/ProfileDialog.tsx | 328 ++++++++++++++++++ frontend/src/components/Dialogs/index.ts | 1 + 3 files changed, 352 insertions(+), 186 deletions(-) create mode 100644 frontend/src/components/Dialogs/ProfileDialog.tsx diff --git a/frontend/src/components/BottomBar.js b/frontend/src/components/BottomBar.js index 80c33e97..4a6f0bd5 100644 --- a/frontend/src/components/BottomBar.js +++ b/frontend/src/components/BottomBar.js @@ -22,13 +22,16 @@ import PasswordIcon from '@mui/icons-material/Password'; import ContentCopy from "@mui/icons-material/ContentCopy"; import DnsIcon from '@mui/icons-material/Dns'; import WebIcon from '@mui/icons-material/Web'; -import BookIcon from '@mui/icons-material/Book'; import PersonAddAltIcon from '@mui/icons-material/PersonAddAlt'; import EmojiEventsIcon from '@mui/icons-material/EmojiEvents'; import FavoriteIcon from '@mui/icons-material/Favorite'; import { AmbossIcon , BitcoinSignIcon} from "./Icons"; -import { CommunityDialog, ExchangeSummaryDialog } from './Dialogs'; +import { + CommunityDialog, + ExchangeSummaryDialog, + ProfileDialog, +} from './Dialogs'; import { getCookie } from "../utils/cookies"; import { pn } from "../utils/prettyNumbers"; @@ -201,7 +204,7 @@ class BottomBar extends Component { this.setState({openProfile: false}); }; - handleSubmitInvoiceClicked=()=>{ + handleSubmitInvoiceClicked=(rewardInvoice)=>{ this.setState({ badInvoice:false, showRewardsSpinner: true, @@ -211,7 +214,7 @@ class BottomBar extends Component { method: 'POST', headers: {'Content-Type':'application/json', 'X-CSRFToken': getCookie('csrftoken'),}, body: JSON.stringify({ - 'invoice': this.state.rewardInvoice, + 'invoice': rewardInvoice, }), }; fetch('/api/reward/', requestOptions) @@ -230,186 +233,6 @@ class BottomBar extends Component { return url.split('/')[2] } - dialogProfile =() =>{ - const { t } = this.props; - return( - - - {t("Your Profile")} - - - - - - {this.props.nickname ? - - : ""} - - - - - - - - - - {this.state.active_order_id ? - - - - - - - - - : - - this.state.last_order_id ? - - - - - - - : - - - - - - } - - - - - - - {getCookie("robot_token") ? - - (navigator.clipboard.writeText(getCookie("robot_token")) & this.props.setAppState({copiedToken:true}))}> - - - , - }} - /> - : - t("Cannot remember")} - - - - - - - this.setState({showRewards: !this.state.showRewards})}/>} - label={t("Rewards and compensations")} - /> - - -
- - - - - - - navigator.clipboard.writeText('http://'+this.getHost()+'/ref/'+this.state.referral_code)}> - - - , - }} - /> - - - - - - - - {!this.state.openClaimRewards ? - - - - {this.state.earned_rewards+" Sats"} - - - - - - - : -
- - - { - this.setState({ rewardInvoice: e.target.value }); - }} - /> - - - - - -
- } -
- - {this.state.showRewardsSpinner? -
- -
- :""} - - {this.state.withdrawn? -
- {t("There it goes, thank you!🥇")} -
- :""} - -
- - - - - ) - } - bottomBarDesktop =()=>{ const { t } = this.props; var hasRewards = this.state.earned_rewards > 0 ? true: false; @@ -418,7 +241,6 @@ bottomBarDesktop =()=>{ return( {this.StatsDialog()} - {this.dialogProfile()} @@ -582,7 +404,6 @@ bottomBarPhone =()=>{ return( {this.StatsDialog()} - {this.dialogProfile()} @@ -696,6 +517,22 @@ bottomBarPhone =()=>{ takerFee={this.state.taker_fee} /> + + {this.bottomBarDesktop()} diff --git a/frontend/src/components/Dialogs/ProfileDialog.tsx b/frontend/src/components/Dialogs/ProfileDialog.tsx new file mode 100644 index 00000000..c6f7b678 --- /dev/null +++ b/frontend/src/components/Dialogs/ProfileDialog.tsx @@ -0,0 +1,328 @@ +import React, { useState } from "react"; +import { useTranslation } from "react-i18next"; +import { Link as LinkRouter } from "react-router-dom"; + +import { + Avatar, + Badge, + Button, + CircularProgress, + Dialog, + DialogContent, + Divider, + FormControlLabel, + Grid, + IconButton, + List, + ListItemAvatar, + ListItemButton, + ListItemText, + ListItem, + ListItemIcon, + Switch, + TextField, + Tooltip, + Typography, +} from "@mui/material"; + +import BoltIcon from "@mui/icons-material/Bolt"; +import NumbersIcon from "@mui/icons-material/Numbers"; +import PasswordIcon from "@mui/icons-material/Password"; +import ContentCopy from "@mui/icons-material/ContentCopy"; +import PersonAddAltIcon from "@mui/icons-material/PersonAddAlt"; +import EmojiEventsIcon from "@mui/icons-material/EmojiEvents"; + +import { getCookie } from "../../utils/cookies"; + +type Props = { + isOpen: boolean; + handleClickCloseProfile: () => void; + nickname: string; + activeOrderId: string | number; + lastOrderId: string | number; + referralCode: string; + handleSubmitInvoiceClicked: (invoice: string) => void; + host: string; + showRewardsSpinner: boolean; + withdrawn: boolean; + badInvoice: boolean | string; + earnedRewards: number; + setAppState: (state: any) => void; // TODO: move to a ContextProvider +} + +const ProfileDialog = ({ + isOpen, + handleClickCloseProfile, + nickname, + activeOrderId, + lastOrderId, + referralCode, + handleSubmitInvoiceClicked, + host, + showRewardsSpinner, + withdrawn, + badInvoice, + earnedRewards, + setAppState, +}: Props): JSX.Element => { + const { t } = useTranslation(); + + const [rewardInvoice, setRewardInvoice] = useState(""); + const [showRewards, setShowRewards] = useState(false); + const [openClaimRewards, setOpenClaimRewards] = useState(false); + + const copyTokenHandler = () => { + const robotToken = getCookie("robot_token"); + + if (robotToken) { + navigator.clipboard.writeText(robotToken); + setAppState({copiedToken:true}); + } + }; + + const copyReferralCodeHandler = () => { + navigator.clipboard.writeText(`http://${host}/ref/${referralCode}`); + }; + + return ( + + + {t("Your Profile")} + + + + + + + + {nickname ? ( +
+
+ + + {nickname} + + +
+
+ ) + : null} +
+
+ + + + +
+ + + + {activeOrderId ? ( + + + + + + + + + ) : + lastOrderId ? ( + + + + + + + ) : ( + + + + + + + ) + } + + + + + + + + {getCookie("robot_token") ? ( + + + + + , + }} + /> + ) : + t("Cannot remember") + } + + + + + + + + setShowRewards(!showRewards)} + /> + } + /> + + + + {showRewards && ( + <> + + + + + + + + + + + , + }} + /> + + + + + + + + + {!openClaimRewards ? ( + + + + {`${earnedRewards} Sats`} + + + + + + + + ) : ( +
+ + + { + setRewardInvoice(e.target.value); + }} + /> + + + + + + +
+ )} +
+ + {showRewardsSpinner && ( +
+ +
+ )} + + {withdrawn && ( +
+ + {t("There it goes, thank you!🥇")} + +
+ )} + + )} +
+
+
+ ); +}; + +export default ProfileDialog; diff --git a/frontend/src/components/Dialogs/index.ts b/frontend/src/components/Dialogs/index.ts index 96597467..3d6b0bdc 100644 --- a/frontend/src/components/Dialogs/index.ts +++ b/frontend/src/components/Dialogs/index.ts @@ -4,4 +4,5 @@ export { default as LearnDialog } from "./Learn"; export { default as NoRobotDialog } from "./NoRobot"; export { default as StoreTokenDialog } from "./StoreToken"; export { default as ExchangeSummaryDialog } from "./ExchangeSummaryDialog"; +export { default as ProfileDialog } from "./ProfileDialog"; From bf35961efb840d3d78b044707c306fef48189662 Mon Sep 17 00:00:00 2001 From: Fernando Porazzi Date: Thu, 19 May 2022 14:33:41 +0200 Subject: [PATCH 3/4] Migrate StatsDialog to Dialogs folder Migrate StatsDialog component into its own file and convert its contents to Typescript. --- frontend/src/components/BottomBar.js | 134 ++---------- .../src/components/Dialogs/StatsDialog.tsx | 196 ++++++++++++++++++ frontend/src/components/Dialogs/index.ts | 1 + 3 files changed, 213 insertions(+), 118 deletions(-) create mode 100644 frontend/src/components/Dialogs/StatsDialog.tsx diff --git a/frontend/src/components/BottomBar.js b/frontend/src/components/BottomBar.js index 4a6f0bd5..af410532 100644 --- a/frontend/src/components/BottomBar.js +++ b/frontend/src/components/BottomBar.js @@ -1,8 +1,7 @@ import React, { Component } from 'react' import { withTranslation } from "react-i18next"; -import {FormControlLabel, Link, Switch, CircularProgress, Badge, Tooltip, TextField, ListItemAvatar, Button, Avatar,Paper, Grid, IconButton, Typography, Select, MenuItem, List, ListItemText, ListItem, ListItemIcon, ListItemButton, Divider, Dialog, DialogContent} from "@mui/material"; +import { Badge, Tooltip, ListItemAvatar, Avatar,Paper, Grid, IconButton, Select, MenuItem, ListItemText, ListItem, ListItemIcon, ListItemButton } from "@mui/material"; import MediaQuery from 'react-responsive' -import { Link as LinkRouter } from 'react-router-dom' // Icons import SettingsIcon from '@mui/icons-material/Settings'; @@ -12,29 +11,15 @@ import SellIcon from '@mui/icons-material/Sell'; import SmartToyIcon from '@mui/icons-material/SmartToy'; import PercentIcon from '@mui/icons-material/Percent'; import PriceChangeIcon from '@mui/icons-material/PriceChange'; -import BoltIcon from '@mui/icons-material/Bolt'; -import GitHubIcon from '@mui/icons-material/GitHub'; -import EqualizerIcon from '@mui/icons-material/Equalizer'; - -import PublicIcon from '@mui/icons-material/Public'; -import NumbersIcon from '@mui/icons-material/Numbers'; -import PasswordIcon from '@mui/icons-material/Password'; -import ContentCopy from "@mui/icons-material/ContentCopy"; -import DnsIcon from '@mui/icons-material/Dns'; -import WebIcon from '@mui/icons-material/Web'; -import PersonAddAltIcon from '@mui/icons-material/PersonAddAlt'; -import EmojiEventsIcon from '@mui/icons-material/EmojiEvents'; -import FavoriteIcon from '@mui/icons-material/Favorite'; -import { AmbossIcon , BitcoinSignIcon} from "./Icons"; import { CommunityDialog, ExchangeSummaryDialog, ProfileDialog, + StatsDialog, } from './Dialogs'; import { getCookie } from "../utils/cookies"; -import { pn } from "../utils/prettyNumbers"; class BottomBar extends Component { constructor(props) { @@ -90,105 +75,6 @@ class BottomBar extends Component { this.setState({openStatsForNerds: false}); }; - StatsDialog =() =>{ - const { t } = this.props; - return( - - - {t("Stats For Nerds")} - - - - - - - - - {this.state.network == 'testnet'? - - - - {this.state.node_id.slice(0, 12)+"... (1ML)"} - - - - : - - - - {this.state.node_id.slice(0, 12)+"... (AMBOSS)"} - - - - } - - - - - - {this.state.alternative_site.slice(0, 12)+"...onion"} - - - - - - - - - {this.state.robosats_running_commit_hash.slice(0, 12)+"..."} - - - - - - - - -
- {pn(this.state.last_day_volume)} - -
-
-
- - - - - -
- {pn(this.state.lifetime_volume)} - -
-
-
- - - - - - {t("Made with")+" "} - - {" "+t("and")+" "} - -
} - secondary={t("... somewhere on Earth!")}/> - - - - - - ) - } - handleClickOpenCommunity = () => { this.setState({openCommuniy: true}); }; @@ -240,7 +126,6 @@ bottomBarDesktop =()=>{ return( - {this.StatsDialog()} @@ -403,7 +288,6 @@ bottomBarPhone =()=>{ var hasOrder = this.state.active_order_id > 0 & !this.state.profileShown & this.props.avatarLoaded ? true : false; return( - {this.StatsDialog()} @@ -533,6 +417,20 @@ bottomBarPhone =()=>{ setAppState={this.props.setAppState} /> + + {this.bottomBarDesktop()} diff --git a/frontend/src/components/Dialogs/StatsDialog.tsx b/frontend/src/components/Dialogs/StatsDialog.tsx new file mode 100644 index 00000000..9f77ddf9 --- /dev/null +++ b/frontend/src/components/Dialogs/StatsDialog.tsx @@ -0,0 +1,196 @@ +import React from "react"; +import { useTranslation } from "react-i18next"; + +import { + Dialog, + DialogContent, + Divider, + Link, + List, + ListItemText, + ListItem, + ListItemIcon, + Typography, +} from "@mui/material"; + +import BoltIcon from "@mui/icons-material/Bolt"; +import PublicIcon from "@mui/icons-material/Public"; +import DnsIcon from "@mui/icons-material/Dns"; +import WebIcon from "@mui/icons-material/Web"; +import FavoriteIcon from "@mui/icons-material/Favorite"; +import GitHubIcon from "@mui/icons-material/GitHub"; +import EqualizerIcon from "@mui/icons-material/Equalizer"; + +import { AmbossIcon, BitcoinSignIcon } from "../Icons"; + +import { pn } from "../../utils/prettyNumbers"; + +type Props = { + isOpen: boolean; + handleClickCloseStatsForNerds: () => void; + lndVersion: string; + network: string; + nodeAlias: string; + nodeId: string; + alternativeName: string; + alternativeSite: string; + robosatsRunningCommitHash: string; + lastDayVolume: number; + lifetimeVolume: number; +} + +const StatsDialog = ({ + isOpen, + handleClickCloseStatsForNerds, + lndVersion, + network, + nodeAlias, + nodeId, + alternativeName, + alternativeSite, + robosatsRunningCommitHash, + lastDayVolume, + lifetimeVolume, +}: Props): JSX.Element => { + const { t } = useTranslation(); + + return ( + + + {t("Stats For Nerds")} + + + + + + + + + + + + + + {network === "testnet" ? ( + + + + + + + {`${nodeId.slice(0, 12)}... (1ML)`} + + + + ) : ( + + + + + + + {`${nodeId.slice(0, 12)}... (AMBOSS)`} + + + + )} + + + + + + + + + + {`${alternativeSite.slice(0, 12)}...onion`} + + + + + + + + + + + + + {`${robosatsRunningCommitHash.slice(0, 12)}...`} + + + + + + + + + + + +
+ {pn(lastDayVolume)} + +
+
+
+ + + + + + + + +
+ {pn(lifetimeVolume)} + +
+
+
+ + + + + + + + {`${t("Made with")} `} + + {` ${t("and")} `} + +
+ } + secondary={t("... somewhere on Earth!")} + /> + + + + + ); +}; + +export default StatsDialog; diff --git a/frontend/src/components/Dialogs/index.ts b/frontend/src/components/Dialogs/index.ts index 3d6b0bdc..4c020d48 100644 --- a/frontend/src/components/Dialogs/index.ts +++ b/frontend/src/components/Dialogs/index.ts @@ -5,4 +5,5 @@ export { default as NoRobotDialog } from "./NoRobot"; export { default as StoreTokenDialog } from "./StoreToken"; export { default as ExchangeSummaryDialog } from "./ExchangeSummaryDialog"; export { default as ProfileDialog } from "./ProfileDialog"; +export { default as StatsDialog } from "./StatsDialog"; From 4bbb885ec6c795b74b7b575f9f59022639d9f9c7 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Sun, 22 May 2022 13:56:07 -0700 Subject: [PATCH 4/4] Fix claim rewards refresh bug --- frontend/src/components/BottomBar.js | 3 ++- ...xchangeSummaryDialog.tsx => ExchangeSummary.tsx} | 0 .../Dialogs/{ProfileDialog.tsx => Profile.tsx} | 13 +++++++------ .../Dialogs/{StatsDialog.tsx => Stats.tsx} | 0 frontend/src/components/Dialogs/index.ts | 6 +++--- 5 files changed, 12 insertions(+), 10 deletions(-) rename frontend/src/components/Dialogs/{ExchangeSummaryDialog.tsx => ExchangeSummary.tsx} (100%) rename frontend/src/components/Dialogs/{ProfileDialog.tsx => Profile.tsx} (95%) rename frontend/src/components/Dialogs/{StatsDialog.tsx => Stats.tsx} (100%) diff --git a/frontend/src/components/BottomBar.js b/frontend/src/components/BottomBar.js index af410532..8220411d 100644 --- a/frontend/src/components/BottomBar.js +++ b/frontend/src/components/BottomBar.js @@ -90,7 +90,7 @@ class BottomBar extends Component { this.setState({openProfile: false}); }; - handleSubmitInvoiceClicked=(rewardInvoice)=>{ + handleSubmitInvoiceClicked=(e, rewardInvoice)=>{ this.setState({ badInvoice:false, showRewardsSpinner: true, @@ -112,6 +112,7 @@ class BottomBar extends Component { withdrawn: data.successful_withdrawal ? true : false, showRewardsSpinner: false, })); + e.preventDefault(); } getHost(){ diff --git a/frontend/src/components/Dialogs/ExchangeSummaryDialog.tsx b/frontend/src/components/Dialogs/ExchangeSummary.tsx similarity index 100% rename from frontend/src/components/Dialogs/ExchangeSummaryDialog.tsx rename to frontend/src/components/Dialogs/ExchangeSummary.tsx diff --git a/frontend/src/components/Dialogs/ProfileDialog.tsx b/frontend/src/components/Dialogs/Profile.tsx similarity index 95% rename from frontend/src/components/Dialogs/ProfileDialog.tsx rename to frontend/src/components/Dialogs/Profile.tsx index c6f7b678..27815e91 100644 --- a/frontend/src/components/Dialogs/ProfileDialog.tsx +++ b/frontend/src/components/Dialogs/Profile.tsx @@ -41,7 +41,7 @@ type Props = { activeOrderId: string | number; lastOrderId: string | number; referralCode: string; - handleSubmitInvoiceClicked: (invoice: string) => void; + handleSubmitInvoiceClicked: (e:any, invoice: string) => void; host: string; showRewardsSpinner: boolean; withdrawn: boolean; @@ -273,9 +273,9 @@ const ProfileDialog = ({
) : ( -
- - + + + - + diff --git a/frontend/src/components/Dialogs/StatsDialog.tsx b/frontend/src/components/Dialogs/Stats.tsx similarity index 100% rename from frontend/src/components/Dialogs/StatsDialog.tsx rename to frontend/src/components/Dialogs/Stats.tsx diff --git a/frontend/src/components/Dialogs/index.ts b/frontend/src/components/Dialogs/index.ts index 4c020d48..b7177726 100644 --- a/frontend/src/components/Dialogs/index.ts +++ b/frontend/src/components/Dialogs/index.ts @@ -3,7 +3,7 @@ export { default as InfoDialog } from "./Info"; export { default as LearnDialog } from "./Learn"; export { default as NoRobotDialog } from "./NoRobot"; export { default as StoreTokenDialog } from "./StoreToken"; -export { default as ExchangeSummaryDialog } from "./ExchangeSummaryDialog"; -export { default as ProfileDialog } from "./ProfileDialog"; -export { default as StatsDialog } from "./StatsDialog"; +export { default as ExchangeSummaryDialog } from "./ExchangeSummary"; +export { default as ProfileDialog } from "./Profile"; +export { default as StatsDialog } from "./Stats";