Skip to content

Commit

Permalink
fix: style buttons consistently; adds dashboard in navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
tecoholic committed May 6, 2024
1 parent 23d615e commit d8725d7
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/components/course/SubsidyRequestButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const props = {
requested: 'Awaiting approval',
},
disabledStates: ['requested'],
variant: 'primary',
variant: 'outline-primary',
className: 'mb-4 mt-1',
};

Expand Down Expand Up @@ -114,7 +114,9 @@ const SubsidyRequestButton = () => {
};

return (
<StatefulButton {...props} state={getButtonState()} onClick={handleRequestButtonClick} />
<div>
<StatefulButton {...props} state={getButtonState()} onClick={handleRequestButtonClick} />
</div>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const DashboardMainContent = ({ canOnlyViewHighlightSets }) => {
<img src={CourseSearchIcon} alt="Search Courses Icon" />
<h4 className="h3 my-5">Enroll in Learning Paths or Courses</h4>
<p>
<Button as={Link} to={`/${slug}/search`} variant="primary">Explore Now</Button>
<Button as={Link} to={`/${slug}/search`} variant="outline-primary">Explore Now</Button>
</p>
</div>
</CourseEnrollments>
Expand Down
11 changes: 8 additions & 3 deletions src/components/site-header/SiteHeaderNavMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ const SiteHeaderNavMenu = () => {
}

return (
<NavLink to={`/${enterpriseConfig.slug}/search`} className={mainMenuLinkClassName} exact>
Course Finder
</NavLink>
<>
<NavLink to={`/${enterpriseConfig.slug}`} className={mainMenuLinkClassName} exact>
Dashboard
</NavLink>
<NavLink to={`/${enterpriseConfig.slug}/search`} className={mainMenuLinkClassName} exact>
Course Finder
</NavLink>
</>
);
};

Expand Down
5 changes: 5 additions & 0 deletions src/components/site-header/styles/_Header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ $header-logo-height-mobile: 1.5rem;
background: $white;
.nav-link {
text-decoration: none;
border-radius: $border-radius;
&:hover {
background-color: $primary;
color: $white;
}
}
.logo,
.vertical-divider {
Expand Down

0 comments on commit d8725d7

Please sign in to comment.