timetable-app

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit d3fe5b35e6cc9a7ae7cebe999be60dab2dc9ba29
parent fd0b09760eb9d4fc3cc1a04155eab3b385004679
Author: Yuukin256 <Yuukin256@gmail.com>
Date:   Thu, 10 Nov 2022 22:07:06 +0900

微修正

Diffstat:
Msrc/components/daily/DailyView.tsx | 4++--
Msrc/pages/[class].tsx | 1+
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/components/daily/DailyView.tsx b/src/components/daily/DailyView.tsx @@ -17,7 +17,7 @@ const DailyView: FC<Props> = ({ calendar }) => { const { date, dates, index, handlers } = useDailyTimetable(calendar); return ( - <Box sx={{ display: 'flex', flexDirection: 'column', width: '100%' }}> + <Box sx={{ display: 'flex', flexDirection: 'column', width: '100%', py: 2 }}> <Box sx={{ py: 1 }}> <DateIndicator currentDate={date} @@ -30,7 +30,7 @@ const DailyView: FC<Props> = ({ calendar }) => { <Box sx={{ flexGrow: 1 }}> {index < 0 ? ( - <Box sx={{ p: 3 }}>時間割がありません</Box> + <Box sx={{ p: 2 }}>時間割がありません</Box> ) : ( <SwipeableViews index={index} diff --git a/src/pages/[class].tsx b/src/pages/[class].tsx @@ -30,6 +30,7 @@ export const getStaticPaths: GetStaticPaths<UrlQuery> = async () => { }; }; +// TODO: 期間を指定できるようにする export const getStaticProps: GetStaticProps<PageProps, UrlQuery> = async ({ params }) => { if (typeof params === 'undefined') { return {