Skip to content

Commit

Permalink
fix button dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
crkos committed Jan 7, 2024
1 parent 19536dc commit a266d64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/@/components/BookmarkForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ const BookmarkForm = () => {
return;
},
onError: (error) => {
if (error as AxiosError) {
if (error instanceof AxiosError) {
toast({
title: 'Error',
description:
(error as any).response.data.response ||
error.response?.data.response ||
'There was an error while trying to save the link. Please try again.',
variant: 'destructive',
});
Expand Down Expand Up @@ -309,12 +309,12 @@ const BookmarkForm = () => {
: ''
}`}
>
<button
className="absolute top-2 right-2 p-1 bg-gray-100 hover:bg-gray-200 duration-100 rounded-full"
<Button
className="absolute top-1 right-1 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors ease-in-out duration-200"
onClick={() => setOpenCollections(false)}
>
<X className={`h-4 w-4`} />
</button>
</Button>
<Command className="flex-grow min-w-full dropdown-content">
<CommandInput
className="min-w-[280px]"
Expand Down
1 change: 0 additions & 1 deletion src/@/lib/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ export async function saveLinksInCache(baseUrl: string) {
try {
const links = await getLinksFetch(baseUrl);
const linksResponse: bookmarkMetadata[] = links.response;
console.log(linksResponse, "Links from server");

// Create a map to track which bookmarks are still present on the server
const serverBookmarkMap = new Map<number, bookmarkMetadata>();
Expand Down

0 comments on commit a266d64

Please sign in to comment.