From df25f98ab578e76f6d41e72b0fd3f9fbf5ad8c1e Mon Sep 17 00:00:00 2001 From: ori raisfeld Date: Wed, 1 May 2024 08:47:17 +0300 Subject: [PATCH] It's probably because you were jamming out to Dua Lipa too hard. This content comes from JoJo's Bizarre Encyclopedia (https://jojowiki.com), and must be attributed to its authors if you are using it on another wiki or web page, as specified in the license. --- .../internal_apps/apps/settings/assets/image-icon.svg | 1 + src/pages/main_page/internal_apps/apps/settings/settings.tsx | 2 ++ src/pages/main_page/main_page.tsx | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 src/pages/main_page/internal_apps/apps/settings/assets/image-icon.svg diff --git a/src/pages/main_page/internal_apps/apps/settings/assets/image-icon.svg b/src/pages/main_page/internal_apps/apps/settings/assets/image-icon.svg new file mode 100644 index 0000000..826ae81 --- /dev/null +++ b/src/pages/main_page/internal_apps/apps/settings/assets/image-icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/pages/main_page/internal_apps/apps/settings/settings.tsx b/src/pages/main_page/internal_apps/apps/settings/settings.tsx index df9f578..ed774cd 100644 --- a/src/pages/main_page/internal_apps/apps/settings/settings.tsx +++ b/src/pages/main_page/internal_apps/apps/settings/settings.tsx @@ -3,6 +3,7 @@ import welcome from './assets/house-icon.svg'; import volume from './assets/megaphone-icon.svg'; import messages from './assets/bell-silent-line-icon.svg'; import about from './assets/info-circle-icon.svg'; +import background from './assets/image-icon.svg'; import './settings.css'; import { useState } from "react"; import CategoryPage from "./actions"; @@ -32,6 +33,7 @@ export default function Settings() : AppInterface{ + diff --git a/src/pages/main_page/main_page.tsx b/src/pages/main_page/main_page.tsx index b75c78d..2ed053a 100644 --- a/src/pages/main_page/main_page.tsx +++ b/src/pages/main_page/main_page.tsx @@ -10,7 +10,7 @@ import { desktop_app } from './Grid'; import leaveicon from './assets/leave.png'; import { useLocation, useNavigate } from 'react-router-dom'; import exit from './assets/exit.png'; -import { invoke } from '@tauri-apps/api'; +import { invoke, notification } from '@tauri-apps/api'; import Settings from './internal_apps/apps/settings/settings'; import sudo from './internal_apps/apps/sudo/sudo'; import text_viewer from './internal_apps/apps/text_viewer/text_viewer'; @@ -123,6 +123,7 @@ export default function MainPage() { } const fs_props = file_system(open_file, notifications.new_notification); const explorer_app = desktop_app("Files", folder, fs_props, true); + const [menu, set_menu] = useState(false); useEffect(() => { fs_props.update();