Skip to content

Commit 9d2e470

Browse files
committed
updated release 0.2.3
1 parent 3236c68 commit 9d2e470

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "consequence",
3-
"version": "0.1.1",
3+
"version": "0.2.3",
44
"private": true,
55
"type": "module",
66
"scripts": {

src/app/dashboard/day/components/datePicker.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function DatePicker({ date }: { date: Date | string }) {
3333
const [month, setMonth] = React.useState(dayjs(date).toDate());
3434
const [dates, setDates] = React.useState<Date[]>([]);
3535

36-
const { data, isError, isLoading } = useQuery({
36+
const { data } = useQuery({
3737
queryKey: ["documentedDates", month, dates],
3838
queryFn: async () => {
3939
const response = await fetch(`/api/day?month=${dayjs(month).month()}`);
@@ -50,17 +50,13 @@ export function DatePicker({ date }: { date: Date | string }) {
5050
);
5151
setDates([...newDates, ...data.days.map((date) => new Date(date))]);
5252
}
53-
}, [data]);
53+
}, [data]); // eslint-disable-line react-hooks/exhaustive-deps
5454

5555
const documentedStyle = {
5656
color: "black",
5757
backgroundColor: "#BDFFBE",
5858
};
5959

60-
// TODO override current day and selected day hovered day css format
61-
62-
// the calendar wont be dependant on the green how can we load this without spinning the calendar?
63-
6460
return (
6561
<Popover>
6662
<PopoverTrigger asChild>

0 commit comments

Comments
 (0)