cleanup package.json, update sass, fix router (css class issue)

This commit is contained in:
2026-03-04 22:55:56 -06:00
parent a798641848
commit 9fde302756
9 changed files with 3052 additions and 4926 deletions

View File

@@ -5,12 +5,12 @@ import {useRouter} from "./RouterContext";
import {Path} from "./router";
export function Link(props: {className?: string, href: Path, replace?: boolean } & PropsWithChildren) {
const {children, className, href, replace} = props;
const {children, className, href} = props;
const router = useRouter();
function onClick(event: React.MouseEvent) {
// event.preventDefault();
if(replace) {
event.preventDefault();
if(window.location.pathname === href) {
router.replacePage(props.href);
} else {
router.pushPage(props.href);