Skip to content

Commit

Permalink
SetNodePicture -> SetWalletPicture
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloudis committed Oct 28, 2024
1 parent 8538ae4 commit 21b6c4d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -831,9 +831,9 @@ export default class App extends React.PureComponent {
}
/>
<Stack.Screen
name="SetNodePicture" // @ts-ignore:next-line
name="SetWalletPicture" // @ts-ignore:next-line
component={
SetNodePicture
SetWalletPicture
}
/>
<Stack.Screen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ import Button from '../../components/Button';

import { localeString } from '../../utils/LocaleUtils';

interface SetNodePictureProps {
interface SetWalletPictureProps {
navigation: StackNavigationProp<any, any>;
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[] = [
Expand Down Expand Up @@ -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'),
Expand Down Expand Up @@ -251,7 +251,7 @@ export default class SetNodePicture extends React.Component<
/>

<Button
title={localeString('views.SetNodePicture.choosePicture')}
title={localeString('views.SetWalletPicture.choosePicture')}
onPress={() => {
this.onChoosePicturePress();
}}
Expand Down
2 changes: 1 addition & 1 deletion views/Settings/WalletConfiguration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ export default class WalletConfiguration extends React.Component<
(!node || !node.photo) && !photo
? () =>
navigation.navigate(
'SetNodePicture',
'SetWalletPicture',
{ implementation }
)
: () => {
Expand Down

0 comments on commit 21b6c4d

Please sign in to comment.