{
+ selectTab(tab);
+ isScrollingIntoView.current = true;
+
+ if (tab === "오후") {
+ pmFirstItemRef.current?.scrollIntoView({ behavior: "smooth", inline: "start" });
+ }
+ if (tab === "오전") {
+ amFirstItemRef.current?.scrollIntoView({ behavior: "smooth", inline: "start" });
+ }
+
+ setTimeout(() => {
+ isScrollingIntoView.current = false;
+ }, 1000);
+ }}
+ />
+
+
+ {TIME_24.slice(0, 13).map((time, index) => {
return (
-
- {time}
+
+ {time}
);
})}
- {curTab === "오후" &&
- TIME_24.slice(12).map((time, index) => {
+ {TIME_24.slice(13).map((time, index) => {
return (
-
- {`${Number(time.split(":")[0]) - 12}:00`}
+
+ {time}
);
})}
-
+
+