Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove QR code feature #86

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"react-native-localize": "^3.0.4",
"react-native-mmkv": "^2.11.0",
"react-native-modal": "^13.0.1",
"react-native-qrcode-svg": "^6.2.0",
"react-native-randombytes": "^3.6.1",
"react-native-reanimated": "^3.6.1",
"react-native-safe-area-context": "4.5.0",
Expand Down Expand Up @@ -89,4 +88,4 @@
"engines": {
"node": ">=18"
}
}
}
8 changes: 0 additions & 8 deletions src/navigation/AppNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {LoadingScreen} from '../screens/LoadingScreen';
import {NewConversationScreen} from '../screens/NewConversationScreen';
import {OnboardingConnectWalletScreen} from '../screens/OnboardingConnectWalletScreen';
import {OnboardingEnableIdentityScreen} from '../screens/OnboardingEnableIdentityScreen';
import {QrCodeScreen} from '../screens/QrCodeScreen';
import {SearchScreen} from '../screens/SearchScreen';
import {UserProfilesScreen} from '../screens/UserProfilesScreen';
import {ScreenNames} from './ScreenNames';
Expand Down Expand Up @@ -93,13 +92,6 @@ export const AppNavigation = () => {
presentation: 'modal',
}}
/>
<AuthenticatedStack.Screen
name={ScreenNames.QRCode}
component={QrCodeScreen}
options={{
presentation: 'modal',
}}
/>
<AuthenticatedStack.Screen
name={ScreenNames.UserProfiles}
component={UserProfilesScreen}
Expand Down
1 change: 0 additions & 1 deletion src/navigation/ScreenNames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export enum ScreenNames {
Group = 'group',
NewConversation = 'new_conversation',
Search = 'search',
QRCode = 'qr_code',
UserProfiles = 'user_profiles',
Dev = 'dev',
}
1 change: 0 additions & 1 deletion src/navigation/StackParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export type AuthenticatedStackParams = {
[ScreenNames.Group]: {id: string};
[ScreenNames.NewConversation]: {addresses: string[]};
[ScreenNames.Search]: undefined;
[ScreenNames.QRCode]: undefined;
[ScreenNames.UserProfiles]: {address: string};
[ScreenNames.Dev]: undefined;
};
Expand Down
1 change: 0 additions & 1 deletion src/navigation/linkingDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export const linkingDefinition: LinkingOptions<RootStackParams> = {
},
},
[ScreenNames.Search]: 'search',
[ScreenNames.QRCode]: 'qr_code',
[ScreenNames.UserProfiles]: 'user_profiles',
},
},
Expand Down
7 changes: 1 addition & 6 deletions src/screens/AccountSettingsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import {useClientContext} from '../context/ClientContext';
import {useTypedNavigation} from '../hooks/useTypedNavigation';
import {translate} from '../i18n';
import {ScreenNames} from '../navigation/ScreenNames';
import {clearClientKeys} from '../services/encryptedStorage';
import {mmkvStorage} from '../services/mmkvStorage';
import {colors, greens, reds} from '../theme/colors';
Expand Down Expand Up @@ -120,7 +119,7 @@
type Section = 'TOGGLE' | 'DELETE';

export const AccountSettingsScreen = () => {
const {navigate, goBack} = useTypedNavigation();

Check failure on line 122 in src/screens/AccountSettingsScreen.tsx

View workflow job for this annotation

GitHub Actions / lint

'navigate' is assigned a value but never used
const {client, setClient} = useClientContext();
const {avatarUrl, addresses, wallets, name} = useData();
const [walletsShown, setWalletsShown] = useState(false);
Expand Down Expand Up @@ -263,11 +262,7 @@
{translate('you')}
</Text>
}
left={
<Pressable onPress={() => navigate(ScreenNames.QRCode)}>
<Icon name="qr-code" />
</Pressable>
}
left={< Box />}

Check failure on line 265 in src/screens/AccountSettingsScreen.tsx

View workflow job for this annotation

GitHub Actions / lint

Delete `·`
right={
<Pressable onPress={goBack}>
<Icon name="x-circle" />
Expand Down
93 changes: 0 additions & 93 deletions src/screens/QrCodeScreen.tsx

This file was deleted.

6 changes: 1 addition & 5 deletions src/screens/SearchScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,7 @@ export const SearchScreen = () => {
{translate('search')}
</Text>
}
left={
<Pressable onPress={() => navigate(ScreenNames.QRCode)}>
<Icon name="qr-code" />
</Pressable>
}
left={<Box />}
right={
<Pressable onPress={goBack}>
<Icon name="x-circle" />
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.