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

Edit meal request form #83

Merged
merged 24 commits into from
Aug 6, 2023
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions frontend/src/components/pages/Dashboard.tsx
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should lint before making the PR. Linting should fix easy formatting issues.

You can lint by following the instructions here:
https://github.com/uwblueprint/feeding-canadian-kids#linting--formatting

Mainly run docker exec -it fck_frontend /bin/bash -c "yarn fix" in a seperate terminal.

Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
import { Button as ChakraButton, Wrap } from "@chakra-ui/react";

import React, { useContext } from "react";

import { useNavigate } from "react-router-dom";

import MealRequestForm from "./MealRequestForm";

import BackgroundImage from "../../assets/background.png";

import * as Routes from "../../constants/Routes";

import SampleContext from "../../contexts/SampleContext";

import Logout from "../auth/Logout";

import RefreshCredentials from "../auth/RefreshCredentials";

type ButtonProps = { text: string; path: string };
Expand Down Expand Up @@ -67,6 +75,7 @@ const Default = (): React.ReactElement => {
/>
<Button text="Edit Team" path={Routes.EDIT_TEAM_PAGE} />
<Button text="Hooks Demo" path={Routes.HOOKS_PAGE} />
<MealRequestForm />
</Wrap>
<div style={{ height: "2rem" }} />

Expand Down
Loading