Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual Entry Page #18

Merged
merged 18 commits into from
Dec 6, 2024
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.
22 changes: 20 additions & 2 deletions frontend/src/components/Buttons/CLButtons.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import "./CLButtons.css"

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 = () => {}

/**
Expand All @@ -11,14 +15,21 @@ const DEFAULT_ON_CLICK = () => {}
*/
export const CLButtonPrimary = ({
children,
className,
height = DEFAULT_HEIGHT,
width = DEFAULT_WIDTH,
type = DEFAULT_TYPE,
onClick = DEFAULT_ON_CLICK
}) => {

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

return (
<button
className="primary-variant-button"
className={updatedClassName}
type={type}
onClick={onClick}
style={{
height: height,
Expand All @@ -37,14 +48,21 @@ export const CLButtonPrimary = ({
*/
export const CLButtonSecondary = ({
children,
className,
height = DEFAULT_HEIGHT,
width = DEFAULT_WIDTH,
type = DEFAULT_TYPE,
onClick = DEFAULT_ON_CLICK
}) => {

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

return (
<button
className="secondary-variant-button"
className={updatedClassName}
type={type}
onClick={onClick}
style={{
height: height,
Expand Down
Loading
Loading