-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
对课表页面的初步构造 #14
对课表页面的初步构造 #14
Conversation
This reverts commit 4c9d5bd.
备忘一下,突然想起来时间冲突课程的去重还没做。 |
@@ -150,9 +151,9 @@ const CoursePage: React.FC<CoursePageProps> = ({ config, locateDateResult, semes | |||
headerLeft: () => <Text className="ml-4 text-2xl font-medium">课程表</Text>, | |||
// eslint-disable-next-line react/no-unstable-nested-components | |||
headerTitle: () => ( | |||
<Pressable onPress={() => toast.info('周数切换')} className="flex flex-row items-center"> | |||
<Pressable onPress={() => setShowWeekSelector(!showWeekSelector)} className="flex flex-row items-center"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<Pressable onPress={() => setShowWeekSelector(!showWeekSelector)} className="flex flex-row items-center"> | |
<Pressable onPress={() => setShowWeekSelector(prev => !prev)} className="flex flex-row items-center"> |
components/course/course-page.tsx
Outdated
<AntDesign name="caretdown" size={10} color="black" /> | ||
<AntDesign name={showWeekSelector ? 'caretup' : 'caretdown'} size={10} color="black" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
统一用 IonIcons 吧,减少封包体积,这玩意没有 tree-shaking。
It has already implemented in west2-online/jwch@0f62759
提议:这个 PR 体积较大,建议使用 merge commit 来 merge 到主分支中,而不是使用 squash and merge,以便后人 git blame。 |
这个 PR 由于过于庞大,涉及到的变更过多,目前我们考量是先合入主仓库,后续对剩余特性单独开 PR 解决。 |
Resolves #3.
这个 PR 由于过于庞大,涉及到的变更过多,目前我们考量是先合入主仓库,后续对剩余特性单独开 PR 解决。
已解决
待解决