Updated WoL Settings

This commit is contained in:
Sean Edmunds
2025-03-21 10:33:50 -05:00
parent 27a9db82f0
commit 27a7dd2fb9
12 changed files with 637 additions and 135 deletions

View File

@@ -4,14 +4,16 @@ import { useCommonHooks } from 'hooks';
import { useState } from 'react';
import { stackClasses, textClasses } from 'styles';
function AppItem({ url, icon, name, linkDisabled }: any) {
function AppItem({ url, icon, name }: any) {
const [textDecoration, setTextDecoration] = useState<string>('none');
const [hover, setHover] = useState<boolean>(false);
const { isMobile } = useCommonHooks();
const validUrl =
url.startsWith('http://') || url.startsWith('https://') ? url : `http://${url}`;
return (
<Box
component='a'
href={linkDisabled ? undefined : `https://${url}`}
href={validUrl}
onMouseOver={() => {
setTextDecoration('underline');
setHover(true);