diff --git a/client/src/components/Header.tsx b/client/src/components/Header.tsx index 5f9ea46a6c..32cef51f16 100644 --- a/client/src/components/Header.tsx +++ b/client/src/components/Header.tsx @@ -1,7 +1,7 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; import { Fragment, useContext, useMemo } from 'react'; -import { Button, Dropdown, Menu, Space, Tooltip } from 'antd'; +import { Button, Dropdown, Menu, Space } from 'antd'; import { EyeOutlined, LogoutOutlined, @@ -36,6 +36,12 @@ const MENU_ITEMS = [ icon: , title: 'My CV', }, + { + link: 'https://docs.app.rs.school', + icon: , + title: 'Help', + target: '_blank', + }, { link: '/api/v2/auth/github/logout', icon: , @@ -53,11 +59,11 @@ export function Header({ title, showCourseName }: Props) { const menu = ( - {MENU_ITEMS.map(({ link, icon, title }, id, arr) => ( + {MENU_ITEMS.map(({ link, icon, title, target }, id, arr) => ( {id === arr.length - 1 ? : null} - @@ -97,30 +103,15 @@ export function Header({ title, showCourseName }: Props) { {title} {showCourseName ? course?.name : null}
- - - - - {session.githubId && ( - )}
diff --git a/client/src/modules/Schedule/components/MobileItemCard/MobileItemCard.tsx b/client/src/modules/Schedule/components/MobileItemCard/MobileItemCard.tsx index 9f864c78c7..509b454bf3 100644 --- a/client/src/modules/Schedule/components/MobileItemCard/MobileItemCard.tsx +++ b/client/src/modules/Schedule/components/MobileItemCard/MobileItemCard.tsx @@ -3,21 +3,22 @@ import { Row, Col, Typography } from 'antd'; import { SwapRightOutlined } from '@ant-design/icons'; import { coloredDateRenderer } from 'components/Table'; import { renderTagWithStyle, statusRenderer } from '../TableView/renderers'; +import Link from 'next/link'; const { Title } = Typography; export const MobileItemCard = ({ item }: { item: CourseScheduleItemDto }) => { return ( -
- +
+ - - {item.name} - + + {item.name} + {renderTagWithStyle(item.tag)} - + {statusRenderer(item.status)} {coloredDateRenderer('UTC', 'MMM D HH:mm', 'start', 'Recommended date for studying')(item.startDate, item)} diff --git a/client/src/modules/Schedule/pages/SchedulePage/index.tsx b/client/src/modules/Schedule/pages/SchedulePage/index.tsx index ca9da59913..19fa634acc 100644 --- a/client/src/modules/Schedule/pages/SchedulePage/index.tsx +++ b/client/src/modules/Schedule/pages/SchedulePage/index.tsx @@ -87,19 +87,21 @@ export function SchedulePage() { <> - setCopyModal({})} - isCourseManager={isManager} - courseId={course.id} - courseAlias={course.alias} - settings={settings} - calendarToken={cipher} - tags={eventTags} - refreshData={refreshData} - mobileView={mobileView} - /> + {!mobileView && ( + setCopyModal({})} + isCourseManager={isManager} + courseId={course.id} + courseAlias={course.alias} + settings={settings} + calendarToken={cipher} + tags={eventTags} + refreshData={refreshData} + mobileView={mobileView} + /> + )}