Skip to content

Commit

Permalink
Add calendar icon to month selector
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Sep 29, 2024
1 parent d8f945a commit bfab21d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/MonthSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import { useCallback, useEffect, useMemo } from "react";
import { usePathname, useRouter, useSearchParams } from "next/navigation";
import { Calendar } from "lucide-react";
import useStore from "@/app/store";
import {
Select,
Expand Down Expand Up @@ -60,7 +61,10 @@ export const MonthSelector = ({ months }: Props) => {
const date = `${year}-${month}`;
return (
<SelectItem key={month} value={date}>
{formatDateToMonthYear(date)}
<div className="flex items-center">
<Calendar className="mr-2 h-4 w-4" />
{formatDateToMonthYear(date)}
</div>
</SelectItem>
);
})}
Expand Down

0 comments on commit bfab21d

Please sign in to comment.