Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
Fix all linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lambertkevin committed Mar 31, 2022
1 parent 391d7e2 commit 74656a5
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 23 deletions.
1 change: 1 addition & 0 deletions src/components/BottomModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ const BottomModal = ({
</View>
</View>
</ReactNativeModal>
</ButtonUseTouchable.Provider>
);
};

Expand Down
2 changes: 1 addition & 1 deletion src/families/polkadot/NominateFlow/ValidatorItem.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow
import React, { memo, useCallback, useMemo } from "react";
import { View, StyleSheet, TouchableOpacity } from "react-native";
import { View, StyleSheet } from "react-native";
import { Trans } from "react-i18next";
import { Polkadot as PolkadotIdenticon } from "@polkadot/reactnative-identicon/icons";

Expand Down
11 changes: 0 additions & 11 deletions src/navigation/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,15 @@
import { StyleSheet, Platform } from "react-native";

let headerStyle = {};
let headerStyleShadow = {};

if (Platform.OS === "ios") {
headerStyle = {
borderBottomWidth: 0,
};
headerStyleShadow = {
shadowOpacity: 0.03,
shadowRadius: 8,
shadowOffset: {
height: 4,
},
};
} else {
headerStyle = {
elevation: 0,
};
headerStyleShadow = {
borderBottomWidth: 1,
};
}

function Styles() {
Expand Down
1 change: 0 additions & 1 deletion src/screens/AddAccounts/01-SelectCrypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { useTheme } from "@react-navigation/native";
import { ScreenName } from "../../const";
import { TrackScreen } from "../../analytics";
import FilteredSearchBar from "../../components/FilteredSearchBar";
import KeyboardView from "../../components/KeyboardView";
import CurrencyRow from "../../components/CurrencyRow";
import LText from "../../components/LText";

Expand Down
3 changes: 0 additions & 3 deletions src/screens/ReceiveFunds/02-ConnectDevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import type { AccountLike } from "@ledgerhq/live-common/lib/types";
import { createAction } from "@ledgerhq/live-common/lib/hw/actions/app";
import connectApp from "@ledgerhq/live-common/lib/hw/connectApp";

import { useTheme } from "@react-navigation/native";
import { accountScreenSelector } from "../../reducers/accounts";
import { ScreenName } from "../../const";
import { TrackScreen } from "../../analytics";
Expand Down Expand Up @@ -50,8 +49,6 @@ export default function ConnectDevice({ navigation, route }: Props) {
const readOnlyModeEnabled = useSelector(readOnlyModeEnabledSelector);
const [device, setDevice] = useState<?Device>();

const { colors } = useTheme();

useEffect(() => {
const readOnlyTitle = "transfer.receive.titleReadOnly";
if (readOnlyModeEnabled && route.params?.title !== readOnlyTitle) {
Expand Down
5 changes: 0 additions & 5 deletions src/screens/Settings/General/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* @flow */
import React from "react";
import { StyleSheet } from "react-native";
import { TrackScreen } from "../../../analytics";
import CountervalueSettingsRow from "./CountervalueSettingsRow";
import ThemeSettingsRow from "./ThemeSettingsRow";
Expand All @@ -27,7 +26,3 @@ export default function GeneralSettings() {
</NavigationScrollView>
);
}

const styles = StyleSheet.create({
root: { paddingTop: 16, paddingBottom: 64 },
});
2 changes: 1 addition & 1 deletion src/screens/Swap/Connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Connect = ({
provider?: string,
}) => {
const [device, setDevice] = useState(null);
const [result, setLocalResult] = useState();
const [result] = useState();

const onModalHide = useCallback(() => {
if (result) {
Expand Down
2 changes: 1 addition & 1 deletion src/screens/VerifyAccount/VerifyAddress.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function VerifyAddress({
device: ?Device,
onResult: (confirmed: boolean, error?: Error) => void,
}) {
const { theme } = useTheme();
const { dark } = useTheme();
const { t } = useTranslation();

const onConfirmAddress = useCallback(async () => {
Expand Down

0 comments on commit 74656a5

Please sign in to comment.