Skip to content

Commit 12fd568

Browse files
committed
feat: disable lints for now
1 parent c3992b2 commit 12fd568

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/App/index.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const App = () => {
4848
} = state;
4949

5050
const [drawerOpen, setDrawerOpen] = useState(false);
51-
const [snackOpen, setSnackOpen] = useState(false);
51+
const [snackOpen, setSnackOpen] = useState(!window.__TAURI__);
5252
const language = state.languages[languageIndex];
5353

5454
const color = ThemeSelector(themeIndex);
@@ -112,8 +112,6 @@ const App = () => {
112112
if (autoUpdate) {
113113
checkForUpdates();
114114
}
115-
} else {
116-
setSnackOpen(true);
117115
}
118116
// eslint-disable-next-line react-hooks/exhaustive-deps
119117
}, []);

src/components/PasswordTips/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const PasswordTips = () => {
1616
const intervalId = useRef();
1717
const [currentTip, setCurrentTip] = useState(
1818
language.passwordTips[
19+
// eslint-disable-next-line react-hooks/purity
1920
Math.floor(Math.random() * language.passwordTips.length)
2021
],
2122
);
@@ -49,6 +50,7 @@ const PasswordTips = () => {
4950

5051
useEffect(() => {
5152
if (tips) {
53+
// eslint-disable-next-line react-hooks/set-state-in-effect
5254
setCurrentTip(
5355
language.passwordTips[
5456
Math.floor(Math.random() * language.passwordTips.length)

0 commit comments

Comments
 (0)