src: Fix useChrome import, update mock, solve some lint warnings

This fixes the way we're importing `useChrome` in some places. The mock was also updated to reflect the changes. This resolves several lint warnings.
This commit is contained in:
regexowl 2025-07-30 10:49:58 +02:00 committed by Klara Simickova
parent 1bfc830147
commit 327e1cd48f
16 changed files with 108 additions and 50 deletions

View file

@ -42,10 +42,13 @@ export const BuildImagesButton = ({ children }: BuildImagesButtonPropTypes) => {
useEffect(() => {
(async () => {
const data = await auth?.getUser();
const data = await auth.getUser();
setUserData(data);
})();
}, [auth]);
// This useEffect hook should run *only* on mount and therefore has an empty
// dependency array. eslint's exhaustive-deps rule does not support this use.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const onBuildHandler = async () => {
if (selectedBlueprintId) {