File tree Expand file tree Collapse file tree 7 files changed +67
-104
lines changed
Expand file tree Collapse file tree 7 files changed +67
-104
lines changed Original file line number Diff line number Diff line change 11import holiday_jp from "@holiday-jp/holiday_jp" ;
2- import startOfDay from "date-fns/startOfDay/index.js" ;
3- import add from "date-fns/add/index.js" ;
2+ import { add , startOfDay } from "date-fns" ;
43
54function isNonBusinessDay ( d : Date ) : boolean {
65 return holiday_jp . isHoliday ( d ) || d . getDay ( ) === 0 || d . getDay ( ) === 6 ;
Original file line number Diff line number Diff line change 1212 },
1313 "dependencies" : {
1414 "@astrojs/react" : " ^4.4.2" ,
15- "@holiday-jp/holiday_jp" : " ^2.4.0 " ,
15+ "@holiday-jp/holiday_jp" : " ^2.5.1 " ,
1616 "astro" : " ^5.16.3" ,
1717 "daisyui" : " ^5.5.5" ,
18- "date-fns" : " ^2.30 .0" ,
19- "react" : " ^18.3.1 " ,
20- "react-dom" : " ^18.3.1 " ,
21- "react-icons" : " ^4.12 .0" ,
18+ "date-fns" : " ^4.1 .0" ,
19+ "react" : " ^19.2.0 " ,
20+ "react-dom" : " ^19.2.0 " ,
21+ "react-icons" : " ^5.5 .0" ,
2222 "tailwindcss" : " ^4.1.17"
2323 },
2424 "devDependencies" : {
25- "@tailwindcss/vite" : " ^4.1.17"
25+ "@tailwindcss/vite" : " ^4.1.17" ,
26+ "@types/react" : " ^19.2.7" ,
27+ "@types/react-dom" : " ^19.2.3"
2628 }
2729}
Original file line number Diff line number Diff line change 11import type { Renkyu } from "../../lib/renkyu" ;
2- import { FaHeart } from "react-icons/fa/index.js " ;
2+ import { FaHeart } from "react-icons/fa" ;
33
44const char = "♥" ;
55
Original file line number Diff line number Diff line change 1- import format from "date-fns/format/index.js " ;
2- import ja from "date-fns/locale/ja/index.js " ;
1+ import { format } from "date-fns" ;
2+ import { ja } from "date-fns/locale" ;
33
44type Props = {
55 date : Date ;
Original file line number Diff line number Diff line change 11<footer class =" footer footer-center p-10 bg-neutral text-neutral-content" >
2- <div >土曜、日曜、祝日を休日として計算しています。</ div >
3- < div >
4- <p >
2+ <div class = " text-center space-y-1 " >
3+ < div >土曜、日曜、祝日を休日として計算しています。</ div >
4+ <div >
55 祝日データは <a
66 href =" https://github.com/holiday-jp/holiday_jp-js"
77 rel =" nofollow"
88 target =" _blank" >holiday-jp/holiday_jp-js</a
99 > を利用しています。
10- </p >
11- </ div >
12- < div >
13- < a
14- href = " https://github.com/darashi/renkyu-maker "
15- rel = " nofollow "
16- target = " _blank " >GitHub</ a >
10+ </div >
11+ < div >
12+ < a
13+ href = " https://github.com/darashi/renkyu-maker "
14+ rel = " nofollow "
15+ target = " _blank " >GitHub</ a >
16+ </ div >
1717 </div >
1818</footer >
Original file line number Diff line number Diff line change 11import { useEffect , useState } from "react" ;
22import { Renkyu } from "../../lib/renkyu" ;
33import RenkyCard from "./RenkyuCard" ;
4- import startOfDay from "date-fns/startOfDay/index.js " ;
4+ import { startOfDay } from "date-fns" ;
55
66type Props = {
77 year : number ;
You can’t perform that action at this time.
0 commit comments