mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-18 07:23:51 +01:00
Typesafe routing and CM line height issue
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { useParams } from 'react-router-dom';
|
||||
import type { RouteParamsRequest } from './useRoutes';
|
||||
|
||||
export function useActiveRequestId(): string | null {
|
||||
const { requestId } = useParams<{ requestId?: string }>();
|
||||
const { requestId } = useParams<RouteParamsRequest>();
|
||||
return requestId ?? null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user