From b56dda6fd691df2eddfef8af5b2a92e075201a73 Mon Sep 17 00:00:00 2001 From: Vinit khandal <111434418+vinit717@users.noreply.github.com> Date: Tue, 17 Sep 2024 02:25:29 +0530 Subject: [PATCH] Fix/meta twitter image resolution (#156) * chore: fix met tag for twitter * chore: fix meta image resolution * chore: remove unwanted file --- src/components/Layout/index.tsx | 2 ++ src/services/api.tsx | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/Layout/index.tsx b/src/components/Layout/index.tsx index 34a1e84..1de82ae 100644 --- a/src/components/Layout/index.tsx +++ b/src/components/Layout/index.tsx @@ -42,6 +42,8 @@ const Layout: FC = ({ title, children, classNames }) => { /> + + diff --git a/src/services/api.tsx b/src/services/api.tsx index 1fc930c..87f13b9 100644 --- a/src/services/api.tsx +++ b/src/services/api.tsx @@ -10,22 +10,18 @@ interface ShortenUrlRequest { CreatedBy: string; UserId: number; } - interface ShortenUrlResponse { shortUrl: string; } - interface MutationParams { originalUrl: string; userData: User; } - export interface ApiError { message: string; statusCode: number; details?: string; } - const useAuthenticatedQuery = () => { return useQuery({ queryKey: ['useAuthenticatedQuery'], @@ -61,12 +57,10 @@ const useGetUrlsQuery = ({ enabled = true }: { enabled?: boolean }) => { queryFn: getUrlsApi, }); }; - interface useShortenUrlMutationArgs { onSuccess?: (data: ShortenUrlResponse) => void; onError?: (error: AxiosError) => void; } - const useShortenUrlMutation = ({ onSuccess, onError }: useShortenUrlMutationArgs = {}): UseMutationResult< ShortenUrlResponse, AxiosError,