forked from pennlabs/penn-courses
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update review panel. Make stats work on the plan panel.
- Loading branch information
Showing
11 changed files
with
195 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
frontend/degree-plan/components/Infobox/common/CloseButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { GrayIcon } from '@/components/bulma_derived_components'; | ||
import styled from '@emotion/styled' | ||
|
||
const CloseIcon = styled(GrayIcon)` | ||
pointer-events: auto; | ||
margin-left: 0.5rem; | ||
& :hover { | ||
color: #707070; | ||
} | ||
` | ||
|
||
const CloseButton = ({ close }) => ( | ||
<CloseIcon onClick={close}> | ||
<i className="fas fa-times fa-md"></i> | ||
</CloseIcon> | ||
) | ||
|
||
export default CloseButton; |
20 changes: 20 additions & 0 deletions
20
frontend/degree-plan/components/Infobox/common/ErrorBox.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { PropsWithChildren } from "react"; | ||
import { GrayIcon } from "@/components/bulma_derived_components"; | ||
|
||
interface ErrorBoxProps { | ||
detail?: string; | ||
} | ||
|
||
export const ErrorBox = ({ children, detail }: PropsWithChildren<ErrorBoxProps>) => ( | ||
<div style={{ textAlign: "center", padding: 45 }}> | ||
<i | ||
className="fa fa-exclamation-circle" | ||
style={{ fontSize: "150px", color: "#aaa" }} | ||
/> | ||
<h1 style={{ fontSize: "1.5em", marginTop: 15 }}>{children}</h1> | ||
<small> | ||
{detail} If you think this is an error, contact Penn Labs at{" "} | ||
<a href="mailto:[email protected]">[email protected]</a>. | ||
</small> | ||
</div> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.