From 21b6c4d2d0cb83497527262a671024f18a5fa7f8 Mon Sep 17 00:00:00 2001 From: Evan Kaloudis Date: Mon, 28 Oct 2024 11:01:48 -0400 Subject: [PATCH] SetNodePicture -> SetWalletPicture --- App.tsx | 6 +++--- ...SetNodePicture.tsx => SetWalletPicture.tsx} | 18 +++++++++--------- views/Settings/WalletConfiguration.tsx | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) rename views/Settings/{SetNodePicture.tsx => SetWalletPicture.tsx} (95%) diff --git a/App.tsx b/App.tsx index 48cf3658c..f262a1363 100644 --- a/App.tsx +++ b/App.tsx @@ -77,7 +77,7 @@ import PaymentsSettings from './views/Settings/PaymentsSettings'; import InvoicesSettings from './views/Settings/InvoicesSettings'; import LSP from './views/Settings/LSP'; import ChannelsSettings from './views/Settings/ChannelsSettings'; -import SetNodePicture from './views/Settings/SetNodePicture'; +import SetWalletPicture from './views/Settings/SetWalletPicture'; // Lightning address import LightningAddress from './views/Settings/LightningAddress'; @@ -831,9 +831,9 @@ export default class App extends React.PureComponent { } /> ; - route: Route<'SetNodePicture', { implementation: string }>; + route: Route<'SetWalletPicture', { implementation: string }>; } -interface SetNodePictureState { +interface SetWalletPictureState { images: string[]; photo: string; } -export default class SetNodePicture extends React.Component< - SetNodePictureProps, - SetNodePictureState +export default class SetWalletPicture extends React.Component< + SetWalletPictureProps, + SetWalletPictureState > { - constructor(props: SetNodePictureProps) { + constructor(props: SetWalletPictureProps) { super(props); const implementation = this.props.route.params?.implementation; let images: string[] = [ @@ -179,7 +179,7 @@ export default class SetNodePicture extends React.Component< leftComponent="Back" centerComponent={{ text: localeString( - 'views.SetNodePicture.choosePicture' + 'views.SetWalletPicture.choosePicture' ), style: { color: themeColor('text'), @@ -251,7 +251,7 @@ export default class SetNodePicture extends React.Component< />