mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-16 02:40:39 +09:00
feat(ui): reconcile backup UI changes with current routing and interaction features
This commit is contained in:
parent
83be94361c
commit
8ee063c4e5
69 changed files with 1591 additions and 666 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { useMemo } from "react";
|
||||
import { NavLink, useLocation } from "react-router-dom";
|
||||
import { NavLink, useLocation } from "@/lib/router";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import {
|
||||
House,
|
||||
|
|
@ -75,7 +75,7 @@ export function MobileBottomNav({ visible }: MobileBottomNavProps) {
|
|||
{items.map((item) => {
|
||||
if (item.type === "action") {
|
||||
const Icon = item.icon;
|
||||
const active = location.pathname.startsWith("/issues/new");
|
||||
const active = /\/issues\/new(?:\/|$)/.test(location.pathname);
|
||||
return (
|
||||
<button
|
||||
key={item.label}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue