Skip to content

Commit

Permalink
Merge pull request #18 from ubclaunchpad/MelanieKent/manual-entry
Browse files Browse the repository at this point in the history
Manual Entry Page
  • Loading branch information
MelanieKent authored Dec 6, 2024
2 parents 4d59ef8 + 4b6861f commit cf9508e
Show file tree
Hide file tree
Showing 24 changed files with 1,507 additions and 61 deletions.
180 changes: 136 additions & 44 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@heroicons/react": "^2.2.0",
"@mui/icons-material": "^6.1.2",
"@mui/icons-material": "^6.1.9",
"@mui/material": "^6.1.2",
"@mui/x-date-pickers": "^7.23.0",
"@supabase/supabase-js": "^2.45.5",
"axios": "^1.7.7",
"pdfjs-dist": "^4.7.76",
Expand Down
Binary file added frontend/src/assets/labs-fishbones.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/src/assets/pulses.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 14 additions & 12 deletions frontend/src/components/Buttons/CLButtons.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import "./CLButtons.css";
import "./CLButtons.css"

const DEFAULT_PRIMARY_CLASSNAME = "primary-variant-button";
const DEFAULT_SECONDARY_CLASSNAME = "secondary-variant-button";
const DEFAULT_PRIMARY_CLASSNAME = "primary-variant-button"
const DEFAULT_SECONDARY_CLASSNAME = "secondary-variant-button"

const DEFAULT_HEIGHT = "54px";
const DEFAULT_WIDTH = "fit-content";
const DEFAULT_TYPE = "button";
const DEFAULT_ON_CLICK = () => {};
const DEFAULT_HEIGHT = "54px"
const DEFAULT_WIDTH = "fit-content"
const DEFAULT_TYPE = "button"
const DEFAULT_ON_CLICK = () => {}

/**
* PRIMARY variant of the clinical logging button.
Expand All @@ -21,12 +21,13 @@ export const CLButtonPrimary = ({
type = DEFAULT_TYPE,
onClick = DEFAULT_ON_CLICK,
}) => {

const updatedClassName = className
? DEFAULT_PRIMARY_CLASSNAME + " " + className
: DEFAULT_PRIMARY_CLASSNAME;
: DEFAULT_PRIMARY_CLASSNAME

return (
<button
<button
className={updatedClassName}
type={type}
onClick={onClick}
Expand All @@ -53,10 +54,11 @@ export const CLButtonSecondary = ({
type = DEFAULT_TYPE,
onClick = DEFAULT_ON_CLICK,
}) => {
const updatedClassName = className
? DEFAULT_SECONDARY_CLASSNAME + " " + className
: DEFAULT_SECONDARY_CLASSNAME;

const updatedClassName = className
? DEFAULT_SECONDARY_CLASSNAME + " " + className
: DEFAULT_SECONDARY_CLASSNAME

return (
<button
className={updatedClassName}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Home/MainContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function MainContent() {
const [setSelectedLog] = useState(null);

const handleAddLogbook = () => {
navigate("/newLog");
navigate("/home");
};

const handleViewHistory = () => {
Expand Down
Loading

0 comments on commit cf9508e

Please sign in to comment.