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

Clean up onboarding request page #166

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
55 changes: 21 additions & 34 deletions frontend/src/components/asp/requests/TitleSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,29 @@ import React from "react";

interface TitleSectionProps {
title: string;
description: string;
}

const TitleSection = ({
title,
description,
}: TitleSectionProps): React.ReactElement => (
<div>
<VStack
spacing={4}
alignItems="center"
height="fit-content"
style={{
background: "white",
}}
padding={{ base: "1rem", lg: "2rem" }}
const TitleSection = ({ title }: TitleSectionProps): React.ReactElement => (
<div>
<VStack
spacing={4}
alignItems="center"
height="fit-content"
style={{
background: "white",
}}
padding={{ base: "1rem", lg: "2rem" }}
>
<Text
alignSelf={{ base: "center", lg: "unset" }}
variant="desktop-display-xl"
color="primary.blue"
as="b"
>
<Text
alignSelf={{ base: "center", lg: "unset" }}
variant="desktop-display-xl"
color="primary.blue"
as="b"
>
{title}
</Text>

<Text
alignSelf={{ base: "center", lg: "unset" }}
variant="desktop-body"
textAlign="center"
maxWidth="100%"
>
{description}
</Text>
</VStack>
</div>
);
{title}
</Text>
</VStack>
</div>
);

export default TitleSection;
15 changes: 1 addition & 14 deletions frontend/src/pages/OnboardingRequestsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,12 +352,6 @@ const ASPCard = ({
<Text fontWeight="bold">Number of Kids</Text>
<Text>{onboardingRequest?.info?.roleInfo?.aspInfo?.numKids}</Text>
</Box>

<BanIcon />
<Box>
<Text fontWeight="bold">Dietary Restrictions</Text>
<Text>TODO: ADD DIET HERE</Text>
</Box>
</>
)}
{onboardingRequest?.status === OnboardingRequestStatuses.PENDING ? (
Expand Down Expand Up @@ -531,14 +525,7 @@ const OnboardingRequestsPage = (): React.ReactElement => {

const getTitleSection = (): React.ReactElement => (
<Flex flexDir="column" width="100%">
<TitleSection
title="Onboarding Requests"
description={
isASP
? "These are After School Program onboarding requests"
: "These are Meal Donor onboarding requests"
}
/>
<TitleSection title="Onboarding Requests" />
<Flex width="100%" justifyContent="space-between">
<Flex>
<Menu>
Expand Down
Loading