Skip to content

Commit 00527fc

Browse files
committed
remove opacity change on remove
1 parent 2327320 commit 00527fc

File tree

4 files changed

+5
-16
lines changed

4 files changed

+5
-16
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@floating-ui/react": "^0.26.28",
1818
"@lottiefiles/dotlottie-react": "^0.12.0",
1919
"@sentry/react": "^8.48.0",
20-
"@tari-project/tari-tower": "^0.0.13",
20+
"@tari-project/tari-tower": "^0.0.14",
2121
"@tauri-apps/api": "^2.2.0",
2222
"@tauri-apps/plugin-clipboard-manager": "^2.2.0",
2323
"@tauri-apps/plugin-fs": "^2.2.0",

src/App/App.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ export default function App() {
3535
// eslint-disable-next-line react-hooks/exhaustive-deps
3636
}, []);
3737

38-
useEffect(() => {
39-
const canvasElement = document.getElementById('canvas');
40-
if (canvasElement) {
41-
canvasElement.style.opacity = isShuttingDown || isSettingUp ? '0' : '1';
42-
}
43-
}, [isShuttingDown, isSettingUp]);
44-
4538
const showSetup = isSettingUp && !isShuttingDown && isAppReady;
4639
const showMainView = !isSettingUp && !isShuttingDown && isAppReady;
4740
return (

src/containers/main/Dashboard/components/VisualMode.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ function VisualMode() {
2626
const { t } = useTranslation('settings', { useSuspense: false });
2727

2828
const handleDisable = useCallback(() => {
29-
const canvas = document.getElementById(TOWER_CANVAS_ID);
30-
if (canvas) {
31-
canvas.style.opacity = '0';
32-
}
3329
setVisualMode(false);
3430
removeTowerAnimation({ canvasId: TOWER_CANVAS_ID });
3531
}, []);

0 commit comments

Comments
 (0)