|
@@ -5,7 +5,7 @@ import { apiv3Get } from '~/client/util/apiv3-client';
|
|
|
import { IPage } from '~/interfaces/page';
|
|
import { IPage } from '~/interfaces/page';
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
-export const useSWRxRecentlyUpdated = <Data, Error>(): SWRResponse<IPage[], Error> => {
|
|
|
|
|
|
|
+export const useSWRxRecentlyUpdated = (): SWRResponse<IPage[], Error> => {
|
|
|
return useSWR(
|
|
return useSWR(
|
|
|
'/pages/recent',
|
|
'/pages/recent',
|
|
|
endpoint => apiv3Get<{ pages: IPage[] }>(endpoint).then(response => response.data?.pages),
|
|
endpoint => apiv3Get<{ pages: IPage[] }>(endpoint).then(response => response.data?.pages),
|