Skip to content

Commit

Permalink
feat: code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
abretonc7s committed Mar 6, 2024
1 parent 94b9491 commit a8195d4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
17 changes: 0 additions & 17 deletions app/actions/sdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export enum ActionType {
REMOVE_APPROVED_HOST = 'REMOVE_APPROVWED_HOST',
SET_APPROVED_HOST = 'SET_APPROVED_HOST',
RESET_APPROVED_HOSTS = 'RESET_APPROVED_HOSTS',
ADD_ANDROID_CONNECTION = 'ADD_ANDROID_CONNECTION',
SET_CONNECTED = 'SET_CONNECTED',
UPDATE_ANDROID_CONNECTION = 'UPDATE_ANDROID_CONNECTION',
REMOVE_ANDROID_CONNECTION = 'REMOVE_ANDROID_CONNECTION',
Expand Down Expand Up @@ -59,12 +58,6 @@ export interface ResetApprovedHosts
approvedHosts: ApprovedHosts;
}

export interface AddAndroidConnection
extends ReduxAction<ActionType.ADD_ANDROID_CONNECTION> {
channelId: string;
connection: ConnectionProps;
}

export interface UpdateAndroidConnection
extends ReduxAction<ActionType.UPDATE_ANDROID_CONNECTION> {
channelId: string;
Expand Down Expand Up @@ -101,7 +94,6 @@ export type Action =
| SetApprovedHost
| ResetApprovedHosts
| UpdateWC2Metadata
| AddAndroidConnection
| UpdateAndroidConnection
| RemoveAndroidConnection
| ResetAndroidConnections
Expand Down Expand Up @@ -169,15 +161,6 @@ export const resetApprovedHosts = (
approvedHosts,
});

export const addAndroidConnection = (
channelId: string,
connection: ConnectionProps,
): AddAndroidConnection => ({
type: ActionType.ADD_ANDROID_CONNECTION,
channelId,
connection,
});

export const updateAndroidConnection = (
channelId: string,
connection: ConnectionProps,
Expand Down
2 changes: 1 addition & 1 deletion app/components/Views/AccountConnect/AccountConnect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const AccountConnect = (props: AccountConnectProps) => {
const faviconSource = useFavicon(origin);

const actualIcon = useMemo(
() => ({ uri: dappIconUrl } ?? faviconSource),
() => (dappIconUrl ? { uri: dappIconUrl } : faviconSource),
[dappIconUrl, faviconSource],
);

Expand Down
8 changes: 0 additions & 8 deletions app/reducers/sdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,6 @@ const sdkReducer = (
[action.channelId]: action.validUntil,
},
};
case ActionType.ADD_ANDROID_CONNECTION:
return {
...state,
androidConnections: {
...state.androidConnections,
[action.channelId]: action.connection,
},
};
case ActionType.UPDATE_ANDROID_CONNECTION:
return {
...state,
Expand Down

0 comments on commit a8195d4

Please sign in to comment.