Skip to content

Commit

Permalink
Fix somebody else's linting fuck ups
Browse files Browse the repository at this point in the history
  • Loading branch information
chmac committed Dec 10, 2024
1 parent 00f156b commit b7cacc3
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions nr-app/app/(tabs)/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,21 @@ import Toast from "react-native-root-toast";
const DevSwitch = () => {
const [devMode, setDevMode] = useState(true); // Local state for toggle

const toggleVisibility = (value: boolean | ((prevState: boolean) => boolean)) => {
const toggleVisibility = (
value: boolean | ((prevState: boolean) => boolean),
) => {
setDevMode(value); // Update visibility based on switch value
};

return (
<View>
<Switch
value={devMode}
onValueChange={toggleVisibility}
/>
<Text>dev mode</Text>
{devMode && <Text>DEV MODE ON</Text>}
<Switch value={devMode} onValueChange={toggleVisibility} />
<Text>dev mode</Text>
{devMode && <Text>DEV MODE ON</Text>}
</View>
);
};


export default function TabThreeScreen() {
const [nsec, setNsec] = useState("");
const [mnemonic, setMnemonic] = useState("");
Expand Down

0 comments on commit b7cacc3

Please sign in to comment.