mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-19 13:06:22 +00:00
Reduced duplication when defining routes in visits section
This commit is contained in:
@@ -28,7 +28,6 @@ const ShortUrlVisits = boundToMercureHub(({
|
||||
}: ShortUrlVisitsProps) => {
|
||||
const { shortCode } = params;
|
||||
const { domain } = parseQuery<{ domain?: string }>(search);
|
||||
|
||||
const loadVisits = (params: Partial<ShlinkVisitsParams>) => getShortUrlVisits(shortCode, { ...params, domain });
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user