Skip to content

Commit

Permalink
Fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Feng-09 committed Aug 25, 2024
1 parent 05828af commit 140fbc5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/app/(landing-routes)/blog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { getApiUrl } from "~/actions/getApiUrl";
import CustomButton from "~/components/common/common-button/common-button";
import HeroSection from "~/components/extDynamicPages/blogCollection/BlogPageHero";
import BlogCard from "~/components/layouts/BlogCards";
import { useToast } from "~/components/ui/use-toast";
import {
Pagination,
PaginationContent,
Expand All @@ -18,6 +17,7 @@ import {
PaginationNext,
PaginationPrevious,
} from "~/components/ui/pagination";
import { useToast } from "~/components/ui/use-toast";

const BlogHome = () => {
const [isLoading, setIsLoading] = useState<boolean>(true);
Expand Down Expand Up @@ -49,6 +49,7 @@ const BlogHome = () => {
},
});
const data = response.data;
setData(response.data);
setBlogPost(data);
toast({
title:
Expand All @@ -73,6 +74,8 @@ const BlogHome = () => {
: "An unknown error occurred",
variant: "destructive",
});
} finally {
setIsLoading(false);
}
}
fetchBlog();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ const SettingsSidebar: FC<Iproperties> = ({ sideNavitems = sideItems }) => {

return (
<div className="h-screen w-[50px] flex-col items-center justify-center bg-[#FAFAFA] pt-6 md:block md:w-[304px] md:justify-start md:px-4">
<div className="mb-6 flex items-center justify-center md:justify-start md:gap-2 hover:cursor-pointer" onClick={() => router.push("/dashboard")}>
<div
className="mb-6 flex items-center justify-center hover:cursor-pointer md:justify-start md:gap-2"
onClick={() => router.push("/dashboard")}
>
<ChevronLeft className="h-5 w-5 text-neutral-dark-2" />
<h2 className="hidden text-xl text-neutral-dark-2 md:block">
Settings
Expand Down

0 comments on commit 140fbc5

Please sign in to comment.