Skip to content

Commit

Permalink
Fix/meta twitter image resolution (#156)
Browse files Browse the repository at this point in the history
* chore: fix met tag for twitter

* chore: fix meta image resolution

* chore: remove unwanted file
  • Loading branch information
vinit717 authored Sep 16, 2024
1 parent c002e21 commit b56dda6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/components/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ const Layout: FC<LayoutProps> = ({ title, children, classNames }) => {
/>
<meta property="twitter:image" content="https://tiny.realdevsquad.com/rds.png" />
<meta name="twitter:creator" content="@RealDevSquad" />
<meta name="twitter:image:width" content="1200" />
<meta name="twitter:image:height" content="630" />
</Head>

<Navbar />
Expand Down
6 changes: 0 additions & 6 deletions src/services/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down Expand Up @@ -61,12 +57,10 @@ const useGetUrlsQuery = ({ enabled = true }: { enabled?: boolean }) => {
queryFn: getUrlsApi,
});
};

interface useShortenUrlMutationArgs {
onSuccess?: (data: ShortenUrlResponse) => void;
onError?: (error: AxiosError<ApiError>) => void;
}

const useShortenUrlMutation = ({ onSuccess, onError }: useShortenUrlMutationArgs = {}): UseMutationResult<
ShortenUrlResponse,
AxiosError<ApiError>,
Expand Down

0 comments on commit b56dda6

Please sign in to comment.