From e52bd5841992dce1315ee6b552ae519ce3847158 Mon Sep 17 00:00:00 2001 From: Kevin Wu Date: Wed, 17 Jan 2024 13:39:04 -0800 Subject: [PATCH] chore: run prettier --- .../SearchForm/SectionCodeSearchBar.tsx | 6 +++--- .../CoursePane/SearchForm/TermSelector.tsx | 4 +--- .../RightPane/SectionTable/PrereqTree.css | 15 ++++++--------- 3 files changed, 10 insertions(+), 15 deletions(-) diff --git a/apps/antalmanac/src/components/RightPane/CoursePane/SearchForm/SectionCodeSearchBar.tsx b/apps/antalmanac/src/components/RightPane/CoursePane/SearchForm/SectionCodeSearchBar.tsx index ab38581ab..abe296bb9 100644 --- a/apps/antalmanac/src/components/RightPane/CoursePane/SearchForm/SectionCodeSearchBar.tsx +++ b/apps/antalmanac/src/components/RightPane/CoursePane/SearchForm/SectionCodeSearchBar.tsx @@ -10,9 +10,9 @@ class SectionCodeSearchBar extends PureComponent { } getSectionCode() { - return RightPaneStore.getUrlCourseCodeValue() - ? this.updateCourseCodeAndGetFormData() - : RightPaneStore.getFormData().sectionCode; + return RightPaneStore.getUrlCourseCodeValue() + ? this.updateCourseCodeAndGetFormData() + : RightPaneStore.getFormData().sectionCode; } state = { diff --git a/apps/antalmanac/src/components/RightPane/CoursePane/SearchForm/TermSelector.tsx b/apps/antalmanac/src/components/RightPane/CoursePane/SearchForm/TermSelector.tsx index 270c10b5d..344839614 100644 --- a/apps/antalmanac/src/components/RightPane/CoursePane/SearchForm/TermSelector.tsx +++ b/apps/antalmanac/src/components/RightPane/CoursePane/SearchForm/TermSelector.tsx @@ -19,9 +19,7 @@ class TermSelector extends PureComponent { } getTerm() { - return RightPaneStore.getUrlTermValue() - ? this.updateTermAndGetFormData() - : RightPaneStore.getFormData().term + return RightPaneStore.getUrlTermValue() ? this.updateTermAndGetFormData() : RightPaneStore.getFormData().term; } state = { diff --git a/apps/antalmanac/src/components/RightPane/SectionTable/PrereqTree.css b/apps/antalmanac/src/components/RightPane/SectionTable/PrereqTree.css index 743b7596b..a0ca4fe22 100644 --- a/apps/antalmanac/src/components/RightPane/SectionTable/PrereqTree.css +++ b/apps/antalmanac/src/components/RightPane/SectionTable/PrereqTree.css @@ -1,13 +1,12 @@ :root { --grey-light-theme: #8d8d8d; --background-grey-light-theme: #e0e0e0; - } +} .dependency-list-branch { margin: auto; } - .prereq-tree { display: flex; flex-direction: column; @@ -72,7 +71,6 @@ height: 1px; } - .course-node { margin: auto 1rem auto 0; } @@ -85,7 +83,6 @@ margin-right: 0; } - .dependency-node:first-child:last-child::after { height: 0 !important; } @@ -194,10 +191,10 @@ } .course { - border-radius: 3px; - font-size: .8rem; - font-weight: 500; - padding: 0.35rem; + border-radius: 3px; + font-size: 0.8rem; + font-weight: 500; + padding: 0.35rem; } .missing-tree { @@ -209,4 +206,4 @@ /* Styling that targets the Popover component (not sure why it can't be done inline)*/ .MuiPopover-paper { overflow-x: auto; -} \ No newline at end of file +}