diff --git a/src/components/molecules/CalendarGroup/index.tsx b/src/components/molecules/CalendarGroup/index.tsx index 3d5ac9a373f0d3ee63966aa31916b7b8b309bf63..03753e0dd85e45807b54047b81a107635ffec795 100644 --- a/src/components/molecules/CalendarGroup/index.tsx +++ b/src/components/molecules/CalendarGroup/index.tsx @@ -19,7 +19,12 @@ const CalendarGroup: React.FC = () => { colorType = eventTypes.GreenCard; break; } - return { title : `${type}: ${title}`, subtitle, content, type: colorType }; + return { + title: `${type}: ${title}`, + subtitle, + content, + type: colorType + }; })} /> ); @@ -32,24 +37,24 @@ let events = [ type: "Lecture", title: "CO142", subtitle: "09:00 - 11:00", - content: "308, Huxley Building, South Kensington Campus", + content: "308, Huxley Building, South Kensington Campus" }, { type: "Lecture", title: "CO145", subtitle: "13:00 - 14:00", - content: "311, Huxley Building, South Kensington Campus", + content: "311, Huxley Building, South Kensington Campus" }, { type: "Labs", title: "CO161", subtitle: "15:00 - 17:00", - content: "219, Huxley Building, South Kensington Campus", + content: "219, Huxley Building, South Kensington Campus" }, { type: "Deadline", title: "CO120.1", subtitle: "19:00", - content: "Haskell L Systems", - }, + content: "Haskell L Systems" + } ]; diff --git a/src/components/molecules/CategoryHeader/index.tsx b/src/components/molecules/CategoryHeader/index.tsx index 8aa7ac14d5d3e54a9681c76d2337822495ceda02..369182080bda782c194a47881a71a695d53e4e02 100644 --- a/src/components/molecules/CategoryHeader/index.tsx +++ b/src/components/molecules/CategoryHeader/index.tsx @@ -21,15 +21,13 @@ const CategoryHeader: React.FC<CategoryHeaderProps> = ({ return ( <> <div className={styles.sectionHeaderContainer}> - <span className={styles.sectionHeader}> - {heading} - </span> + <span className={styles.sectionHeader}>{heading}</span> <div className={styles.sectionHeaderButtonGroup}> <Button style={{ color: checkBoxColor }} className={styles.sectionHeaderButton} - onClick={onSelectAllClick} - variant="secondary" + onClick={onSelectAllClick} + variant="secondary" > <FontAwesomeIcon className={styles.buttonIcon} @@ -39,7 +37,7 @@ const CategoryHeader: React.FC<CategoryHeaderProps> = ({ </div> </div> </> - ) + ); }; -export default CategoryHeader; \ No newline at end of file +export default CategoryHeader; diff --git a/src/components/molecules/CategoryHeader/style.module.scss b/src/components/molecules/CategoryHeader/style.module.scss index b92b432000b8cd258812a59c980d66aa0faa5294..87528c10185dae6ca41ea9da8a079eb6c6af23ca 100644 --- a/src/components/molecules/CategoryHeader/style.module.scss +++ b/src/components/molecules/CategoryHeader/style.module.scss @@ -2,8 +2,8 @@ @import "assets/scss/global"; .sectionHeader { - font-size: 1.25rem; - text-transform: capitalize; + font-size: 1.25rem; + text-transform: capitalize; } .sectionHeaderContainer { diff --git a/src/components/molecules/CurrentDirectoryRow/index.tsx b/src/components/molecules/CurrentDirectoryRow/index.tsx index a606063adb53214ab0a4f5cfe1353f7c29fbc05f..59cf0f88b82d3f406b9ea52b8c7e05958e487364 100644 --- a/src/components/molecules/CurrentDirectoryRow/index.tsx +++ b/src/components/molecules/CurrentDirectoryRow/index.tsx @@ -5,14 +5,18 @@ import Col from "react-bootstrap/esm/Col"; import FileCard from "components/atoms/FileCard"; import { faSquare, faCheckSquare } from "@fortawesome/free-regular-svg-icons"; import { SelectionProps } from "components/molecules/SelectionView"; -import { resourceTypeToIcon } from "../../pages/ModuleResources" +import { resourceTypeToIcon } from "../../pages/ModuleResources"; const CurrentDirectoryRow: React.FC<{ select: SelectionProps }> = ({ - select, + select }) => { return ( <Row - style={{ marginTop: "10px", marginLeft: "-10px", marginRight: "-10px" }} + style={{ + marginTop: "0.625rem", + marginLeft: "-0.625rem", + marginRight: "-0.625rem" + }} > {select.selectionItems.map(({ title, type, tags, id }) => { if (type === undefined || tags === undefined) return null; @@ -28,8 +32,8 @@ const CurrentDirectoryRow: React.FC<{ select: SelectionProps }> = ({ style={{ marginBottom: ".5rem", marginTop: ".5rem", - paddingLeft: "10px", - paddingRight: "10px", + paddingLeft: "0.625rem", + paddingRight: "0.625rem" }} > <FileCard @@ -44,7 +48,7 @@ const CurrentDirectoryRow: React.FC<{ select: SelectionProps }> = ({ : resourceTypeToIcon(type) } onClick={() => select.handleCardClick(id)} - onIconClick={(e) => { + onIconClick={e => { e.stopPropagation(); select.handleIconClick(id); }} diff --git a/src/components/molecules/FoldersRow/index.tsx b/src/components/molecules/FoldersRow/index.tsx index 4ad41a9b4b4b4e5448ebcd680c3a74bc8386ada8..75e62efaa5cf63e7e5c06e861d63f54b138dbaaa 100644 --- a/src/components/molecules/FoldersRow/index.tsx +++ b/src/components/molecules/FoldersRow/index.tsx @@ -6,34 +6,44 @@ import { faSquare, faCheckSquare } from "@fortawesome/free-regular-svg-icons"; import { faFolder } from "@fortawesome/free-solid-svg-icons"; import { SelectionProps } from "../SelectionView"; -const FoldersRow: React.FC<{ select: SelectionProps }> = ({ - select, -}) => { - return ( - <Row style={{ marginTop: "10px", marginRight: "-10px", marginLeft: "-10px" }}> - {select.selectionItems.map(({ title, id }) => ( - <Col xs={6} sm={6} md={3} key={id} style={{ paddingLeft: "10px", paddingRight: "10px" }}> - <FolderCard - title={title} - icon={ - select.isAnySelected() || select.state.isHoveringOver[id] - ? select.state.isSelected[id] - ? faCheckSquare - : faSquare - : faFolder - } - onIconClick={(e) => { - e.stopPropagation(); - select.handleIconClick(id); - }} - onClick={() => select.handleCardClick(id)} - onMouseOver={() => select.handleMouseOver(id)} - onMouseOut={() => select.handleMouseOut(id)} - /> - </Col> - ))} - </Row> - ); - } +const FoldersRow: React.FC<{ select: SelectionProps }> = ({ select }) => { + return ( + <Row + style={{ + marginTop: "0.625rem", + marginRight: "-0.625rem", + marginLeft: "-0.625rem" + }} + > + {select.selectionItems.map(({ title, id }) => ( + <Col + xs={6} + sm={6} + md={3} + key={id} + style={{ paddingLeft: "0.625rem", paddingRight: "0.625rem" }} + > + <FolderCard + title={title} + icon={ + select.isAnySelected() || select.state.isHoveringOver[id] + ? select.state.isSelected[id] + ? faCheckSquare + : faSquare + : faFolder + } + onIconClick={e => { + e.stopPropagation(); + select.handleIconClick(id); + }} + onClick={() => select.handleCardClick(id)} + onMouseOver={() => select.handleMouseOver(id)} + onMouseOut={() => select.handleMouseOut(id)} + /> + </Col> + ))} + </Row> + ); +}; export default FoldersRow; diff --git a/src/components/molecules/PageButtonGroup/index.tsx b/src/components/molecules/PageButtonGroup/index.tsx index b0d666b3e10d6b1aeb9e7ee2f69b96ed255af061..f56409135a381ab7be6123599b9739500ec92912 100644 --- a/src/components/molecules/PageButtonGroup/index.tsx +++ b/src/components/molecules/PageButtonGroup/index.tsx @@ -10,12 +10,13 @@ export interface ButtonGroupProps { title: string; icon: IconDefinition; url: string; - }[]; - style?: React.CSSProperties; + }[]; + style?: React.CSSProperties; } const PageButtonGroup: React.FC<ButtonGroupProps> = ({ - buttons,style, + buttons, + style }: ButtonGroupProps) => { return ( <> @@ -28,7 +29,7 @@ const PageButtonGroup: React.FC<ButtonGroupProps> = ({ lg={4} xl={3} key={i} - style={{ paddingRight: "10px", paddingLeft: "10px" }} + style={{ paddingRight: "0.625rem", paddingLeft: "0.625rem" }} > <Button href={url} target="_blank"> {title} diff --git a/src/components/molecules/QuickAccessRow/index.tsx b/src/components/molecules/QuickAccessRow/index.tsx index 34d1ab888ae6ed2fb977fcc3a21affab7ec39b2b..c12d06b483d456dfa1dae5f186f7f5b8eae7dfdf 100644 --- a/src/components/molecules/QuickAccessRow/index.tsx +++ b/src/components/molecules/QuickAccessRow/index.tsx @@ -7,11 +7,9 @@ import Col from "react-bootstrap/esm/Col"; import FileCard from "components/atoms/FileCard"; import { faSquare, faCheckSquare } from "@fortawesome/free-regular-svg-icons"; import { SelectionProps } from "components/molecules/SelectionView"; -import { resourceTypeToIcon } from "../../pages/ModuleResources" +import { resourceTypeToIcon } from "../../pages/ModuleResources"; -const QuickAccessRow: React.FC<{ select: SelectionProps }> = ({ - select, -}) => { +const QuickAccessRow: React.FC<{ select: SelectionProps }> = ({ select }) => { return ( <Row className={classNames( @@ -35,8 +33,8 @@ const QuickAccessRow: React.FC<{ select: SelectionProps }> = ({ style={{ marginBottom: ".5rem", marginTop: ".5rem", - paddingLeft: "10px", - paddingRight: "10px", + paddingLeft: "0.625rem", + paddingRight: "0.625rem" }} > <FileCard @@ -51,7 +49,7 @@ const QuickAccessRow: React.FC<{ select: SelectionProps }> = ({ : resourceTypeToIcon(type) } onClick={() => select.handleCardClick(id)} - onIconClick={(e) => { + onIconClick={e => { e.stopPropagation(); select.handleIconClick(id); }} diff --git a/src/components/molecules/QuickAccessRow/style.module.scss b/src/components/molecules/QuickAccessRow/style.module.scss index be0bbee19659e8ce8dd9d229878297f64b141ca8..d45af642fa52b216524fb52f07ef947943b9ca04 100644 --- a/src/components/molecules/QuickAccessRow/style.module.scss +++ b/src/components/molecules/QuickAccessRow/style.module.scss @@ -2,33 +2,32 @@ .quickAccessRow { scrollbar-width: thin; - scrollbar-color: $white $white; - margin-top: 10px; - overflow-y: visible; - overflow-x: auto; - margin-right: -10px; - margin-left: -10px; - // margin-left: 0; // leave space before card + scrollbar-color: $white $white; + margin-top: 0.625rem; + overflow-y: visible; + overflow-x: auto; + margin-right: -0.625rem; + margin-left: -0.625rem; } .quickAccessRow::-webkit-scrollbar { - width: 1rem; + width: 1rem; height: 0.5rem; } .quickAccessRow::-webkit-scrollbar-track { background: $white; - margin-left: 10px; - margin-right: 10px; + margin-left: 0.625rem; + margin-right: 0.625rem; } .quickAccessRow::-webkit-scrollbar-thumb { background-color: $white; - border-radius: .5rem; + border-radius: 0.5rem; } .quickAccessRow:hover { - scrollbar-color: $gray-400 $white; + scrollbar-color: $gray-400 $white; } .quickAccessRow:hover::-webkit-scrollbar-thumb { - background-color: $gray-400; + background-color: $gray-400; } diff --git a/src/components/molecules/SearchBox/index.tsx b/src/components/molecules/SearchBox/index.tsx index 4ef16be2a0aea33a59597e8b3045283f769e294a..7fb167946d4bddc0ca1e2e2dc4dda5ee1d3daf98 100644 --- a/src/components/molecules/SearchBox/index.tsx +++ b/src/components/molecules/SearchBox/index.tsx @@ -55,7 +55,9 @@ const SearchBox: React.FC<SearchBoxProps> = ({ > File </Dropdown.Item> - <Dropdown.Header className={styles.dropdownHeader}>Tags: </Dropdown.Header> + <Dropdown.Header className={styles.dropdownHeader}> + Tags:{" "} + </Dropdown.Header> <Dropdown.Item className={styles.dropdownItem} onClick={() => onSearchTextChange(`${searchText} tag(new) `)} diff --git a/src/components/molecules/SearchBox/style.module.scss b/src/components/molecules/SearchBox/style.module.scss index ea7493277494f6ca1fbed26be2dba94b8c339797..9797c89ebab096486256d7927071a06a0cf7a4a1 100644 --- a/src/components/molecules/SearchBox/style.module.scss +++ b/src/components/molecules/SearchBox/style.module.scss @@ -33,9 +33,9 @@ $button-border: transparentize($gray-300, 1); } .searchBarIcon { - border-radius: 0.5rem; - border-top-right-radius: 0.5rem !important; - border-bottom-right-radius: 0.5rem !important; + border-radius: 0.5rem; + border-top-right-radius: 0.5rem !important; + border-bottom-right-radius: 0.5rem !important; background-color: $gray-100; border-color: $gray-100; color: $gray-500; @@ -45,22 +45,21 @@ $button-border: transparentize($gray-300, 1); margin-top: 0.875rem; } - .searchBarIcon:global(.active), .searchBarIcon:active, -.searchBarIcon:hover, -.searchBarIcon:focus{ +.searchBarIcon:hover, +.searchBarIcon:focus { background: $gray-200 !important; color: $gray-700 !important; - border-color: $gray-200 !important; - box-shadow: none !important; + border-color: $gray-200 !important; + box-shadow: none !important; } .dropdownMenu { border-radius: 0.5rem; margin-top: 0.5rem; box-shadow: 0 0.125rem 0.625rem 0 rgba(0, 0, 0, 0.1); - border: 1px solid $gray-300; + border: 0.0625rem solid $gray-300; padding: 0.75rem; } @@ -100,4 +99,3 @@ $button-border: transparentize($gray-300, 1); font-weight: 500; background: $black; } - diff --git a/src/components/molecules/SelectionView/components/SectionHeader/index.tsx b/src/components/molecules/SelectionView/components/SectionHeader/index.tsx index 7eccc3006ceeee6ca82ce869bda3f54bb383cbad..68b3ac9a6b1a75aa687ba38bf761598f0a3de5e1 100644 --- a/src/components/molecules/SelectionView/components/SectionHeader/index.tsx +++ b/src/components/molecules/SelectionView/components/SectionHeader/index.tsx @@ -10,9 +10,9 @@ export interface SectionHeaderProps { heading: string; selectAllIcon: IconDefinition; showDownload: Boolean; - onDownloadClick: (event: React.MouseEvent) => void; - onSelectAllClick: (event: React.MouseEvent) => void; - checkBoxColur: string; + onDownloadClick: (event: React.MouseEvent) => void; + onSelectAllClick: (event: React.MouseEvent) => void; + checkBoxColur: string; } const ResourceSectionHeader: React.FC<SectionHeaderProps> = ({ @@ -20,15 +20,13 @@ const ResourceSectionHeader: React.FC<SectionHeaderProps> = ({ showDownload, selectAllIcon, onDownloadClick, - onSelectAllClick, - checkBoxColur, + onSelectAllClick, + checkBoxColur }: SectionHeaderProps) => { let show = showDownload.valueOf(); return ( <> - <div - className={styles.sectionHeaderContainer} - > + <div className={styles.sectionHeaderContainer}> <span className={styles.sectionHeader} onClick={onSelectAllClick}> {heading} </span> @@ -36,8 +34,8 @@ const ResourceSectionHeader: React.FC<SectionHeaderProps> = ({ <Fade in={show} timeout={500}> <span id="download-button"> <Button - style={{ color: checkBoxColur }} - variant="secondary" + style={{ color: checkBoxColur }} + variant="secondary" className={styles.sectionHeaderButton} onClick={onDownloadClick} > @@ -51,8 +49,8 @@ const ResourceSectionHeader: React.FC<SectionHeaderProps> = ({ <Button style={{ color: checkBoxColur }} className={styles.sectionHeaderButton} - onClick={onSelectAllClick} - variant="secondary" + onClick={onSelectAllClick} + variant="secondary" aria-controls="download-button" aria-expanded={show} > diff --git a/src/components/molecules/SelectionView/components/SectionHeader/style.module.scss b/src/components/molecules/SelectionView/components/SectionHeader/style.module.scss index feea729204a7c322b0c237a9779118e778abfd8b..6422df1a92cf06e95c0a3de01245ff49ad97a515 100644 --- a/src/components/molecules/SelectionView/components/SectionHeader/style.module.scss +++ b/src/components/molecules/SelectionView/components/SectionHeader/style.module.scss @@ -10,7 +10,7 @@ opacity: 0; transform: scale(0.9); } - + .alert-enter-active { opacity: 1; transform: translateX(0); diff --git a/src/components/molecules/SelectionView/index.tsx b/src/components/molecules/SelectionView/index.tsx index b920facb16fd1cf09109fd1c39afcc733d133810..b94fb29fdca337adfb26a0dd9f8e8212f0f947b6 100644 --- a/src/components/molecules/SelectionView/index.tsx +++ b/src/components/molecules/SelectionView/index.tsx @@ -25,10 +25,10 @@ export interface SelectionProps { export interface MyProps { selectionItems: SelectionItem[]; - render: (selection: SelectionProps) => any; - heading: string; - onDownloadClick: (identifiers: number[]) => void; - onItemClick: (identifier: number) => void; + render: (selection: SelectionProps) => any; + heading: string; + onDownloadClick: (identifiers: number[]) => void; + onItemClick: (identifier: number) => void; } interface MyState { @@ -80,17 +80,17 @@ class SelectionView extends React.Component<MyProps, MyState> { isSelected[id] = !isSelected[id]; isHoveringOver[id] = false; this.setState({ isSelected, isHoveringOver }); - } - - handleDownloadClick(e: React.MouseEvent) { - e.preventDefault(); - let indices : number[] = []; + } + + handleDownloadClick(e: React.MouseEvent) { + e.preventDefault(); + let indices: number[] = []; for (let key in this.state.isSelected) { if (this.state.isSelected[key]) { indices.push(parseInt(key)); } } - this.props.onDownloadClick(indices); + this.props.onDownloadClick(indices); } handleSelectAllClick() { @@ -107,8 +107,8 @@ class SelectionView extends React.Component<MyProps, MyState> { if (this.isAnySelected()) { this.handleIconClick(id); return; - } - this.props.onItemClick(id); + } + this.props.onItemClick(id); } handleMouseOver(id: number) { @@ -127,19 +127,19 @@ class SelectionView extends React.Component<MyProps, MyState> { let selection: SelectionProps = { selectionItems: this.props.selectionItems, state: this.state, - setIsSelected: (selection) => this.setState({ isSelected: selection }), + setIsSelected: selection => this.setState({ isSelected: selection }), isAnySelected: () => this.isAnySelected(), handleCardClick: (id: number) => this.handleCardClick(id), handleIconClick: (id: number) => this.handleIconClick(id), handleMouseOver: (id: number) => this.handleMouseOver(id), - handleMouseOut: (id: number) => this.handleMouseOut(id), + handleMouseOut: (id: number) => this.handleMouseOut(id) }; return ( <> <ResourceSectionHeader heading={this.props.heading} - onDownloadClick={(e) => this.handleDownloadClick(e)} + onDownloadClick={e => this.handleDownloadClick(e)} showDownload={this.isAnySelected()} onSelectAllClick={() => this.handleSelectAllClick()} selectAllIcon={this.isAllSelected() ? faCheckSquare : faSquare} diff --git a/src/components/molecules/SideBarCardGroup/index.tsx b/src/components/molecules/SideBarCardGroup/index.tsx index 08b826444679ff3664eef124ea5e9a52ed5f6568..f8bc8d6106f062347e9f16aadf514dd83b804406 100644 --- a/src/components/molecules/SideBarCardGroup/index.tsx +++ b/src/components/molecules/SideBarCardGroup/index.tsx @@ -10,7 +10,7 @@ export interface SideBarCardGroupProps { const SideBarCardGroup: React.FC<SideBarCardGroupProps> = ({ events, - title, + title }: SideBarCardGroupProps) => { return ( <> diff --git a/src/components/molecules/SideBarCardGroup/style.module.scss b/src/components/molecules/SideBarCardGroup/style.module.scss index 34485a5dd539b4a3020a50658f0f79ebd76befc3..796c4d5ee127d3cd7b50cf42643da7773ddcf3c0 100644 --- a/src/components/molecules/SideBarCardGroup/style.module.scss +++ b/src/components/molecules/SideBarCardGroup/style.module.scss @@ -1,6 +1,5 @@ @import "assets/scss/custom"; - @media (max-width: 62rem) { .sideBarCardGroup { margin-top: 1.25rem; diff --git a/src/components/molecules/SideBarTabGroup/index.tsx b/src/components/molecules/SideBarTabGroup/index.tsx index ea5defb32543301fdc83b832264770014556e48a..472f1e01567d00048717aac630c8e5a8176de866 100644 --- a/src/components/molecules/SideBarTabGroup/index.tsx +++ b/src/components/molecules/SideBarTabGroup/index.tsx @@ -13,21 +13,25 @@ export interface SideBarTabGroupProp { icon?: IconDefinition; active?: boolean; activeURL?: string; - externalURL?: string; - onClick? : (event: React.MouseEvent) => void; + externalURL?: string; + onClick?: (event: React.MouseEvent) => void; }[]; } const SideBarTabGroup: React.FC<SideBarTabGroupProp> = ({ title, - buttons, + buttons }: SideBarTabGroupProp) => { let displayButtons = buttons.map( ({ title, icon, active, activeURL, externalURL, onClick }) => { let FAicon; if (icon) { FAicon = ( - <FontAwesomeIcon fixedWidth className={styles.tabGroupButtonSvg} icon={icon} /> + <FontAwesomeIcon + fixedWidth + className={styles.tabGroupButtonSvg} + icon={icon} + /> ); } if (activeURL !== undefined) { @@ -46,11 +50,7 @@ const SideBarTabGroup: React.FC<SideBarTabGroupProp> = ({ if (externalURL !== undefined) { return ( - <Button - href={externalURL} - target="_blank" - key={title} - > + <Button href={externalURL} target="_blank" key={title}> {title} {FAicon} </Button> @@ -59,8 +59,8 @@ const SideBarTabGroup: React.FC<SideBarTabGroupProp> = ({ return ( <Button - className={classNames({ active: active })} - onClick={onClick} + className={classNames({ active: active })} + onClick={onClick} key={title} > {title} diff --git a/src/components/molecules/SideBarTabGroup/style.module.scss b/src/components/molecules/SideBarTabGroup/style.module.scss index a6c24ad0b52c97b92b4d1bf86205b414883aafef..fb262c69077fd5924546cb8e7f0b70b5b3f73950 100644 --- a/src/components/molecules/SideBarTabGroup/style.module.scss +++ b/src/components/molecules/SideBarTabGroup/style.module.scss @@ -8,7 +8,6 @@ $button-border: transparentize($gray-300, 1); margin-top: 0.22rem; } - @media (max-width: 62rem) { .tabGroupButtonGroup { margin-top: 1.25rem; diff --git a/src/components/molecules/TutorCardGroup/index.tsx b/src/components/molecules/TutorCardGroup/index.tsx index 311a26ea8ecfbd09c3622423053387f00a18248b..49655de47f8ec51df6c60df717a4a7c0774e93bd 100644 --- a/src/components/molecules/TutorCardGroup/index.tsx +++ b/src/components/molecules/TutorCardGroup/index.tsx @@ -8,7 +8,13 @@ import tutorImage3 from "assets/images/tutor-3.png"; const TutorCardGroup: React.FC = () => { let tutorCards = tutors.map(({ name, email, address, image }) => { return ( - <TutorCard key={email} name={name} email={email} address={address} image={image} /> + <TutorCard + key={email} + name={name} + email={email} + address={address} + image={image} + /> ); }); @@ -32,18 +38,18 @@ const tutors: { name: "Dr. Zahid Barr", email: "zahid.barr@imperial.ac.uk", address: "373, Huxley Building", - image: tutorImage1, + image: tutorImage1 }, { name: "Dr. Rosalind Baker", email: "rosalind.baker@imperial.ac.uk", address: "590, Huxley Building", - image: tutorImage2, + image: tutorImage2 }, { name: "Mr. Subhaan Wicks", email: "subhaan.wicks16@imperial.ac.uk", address: "Huxley Building", - image: tutorImage3, - }, + image: tutorImage3 + } ]; diff --git a/src/components/molecules/TutorCardGroup/style.module.scss b/src/components/molecules/TutorCardGroup/style.module.scss index aa197ea52253122064671b5cf8f94c7f39dd7ecf..69a94a7eec1932c708a6132fa9161c303f01c049 100644 --- a/src/components/molecules/TutorCardGroup/style.module.scss +++ b/src/components/molecules/TutorCardGroup/style.module.scss @@ -2,13 +2,15 @@ .tutorImage { border-radius: 50%; - margin-right: 20px; + margin-right: 1.25rem; } -.tutorName, .tutorEmail, .tutorAddress { - font-size: 18px; - margin-bottom: 0px; - line-height: 24px !important; +.tutorName, +.tutorEmail, +.tutorAddress { + font-size: 1.125rem; + margin-bottom: 0rem; + line-height: 1.5rem !important; } .tutorName { diff --git a/src/components/molecules/WorkDueGroup/index.tsx b/src/components/molecules/WorkDueGroup/index.tsx index 4d206324921626ba125ea9fb0d7afc3b8bb79126..a8b59d784091e1dcc86cf6ab51e0db1c62858aff 100644 --- a/src/components/molecules/WorkDueGroup/index.tsx +++ b/src/components/molecules/WorkDueGroup/index.tsx @@ -7,7 +7,7 @@ export interface WorkDueGroupProps { } const WorkDueGroup: React.FC<WorkDueGroupProps> = ({ - filter, + filter }: WorkDueGroupProps) => { return ( <SideBarCardGroup @@ -27,16 +27,15 @@ const WorkDueGroup: React.FC<WorkDueGroupProps> = ({ return { title: filter === undefined ? module : task, - subtitle: filter === undefined ? task : undefined, - content, - type: colorType, + subtitle: filter === undefined ? task : undefined, + content, + type: colorType }; })} /> ); }; - export default WorkDueGroup; let events = [