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

[ERP-2024] Added Past incident component #2

Merged
merged 3 commits into from
Jul 15, 2024

Conversation

NikuPAN
Copy link

@NikuPAN NikuPAN commented Jul 15, 2024

Added Past incident component, stories & example incidents json data file

@NikuPAN NikuPAN changed the title Added Past incident component [ERP-2024] Added Past incident component Jul 15, 2024
Copy link

@ryan-bennett ryan-bennett left a comment

Choose a reason for hiding this comment

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

One change requested, good stuff!

Simple.args = {
title: "Past Incidents",
subTitle: "Showing all past incidents in the last 6 months",
data: typedJsonData,

Choose a reason for hiding this comment

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

Lets put the data in the story as an arg, i.e. omit import jsonData from "../../../public/incidents.json"; This will keep the story static

Copy link
Author

Choose a reason for hiding this comment

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

Updated

} from "@chakra-ui/react";

interface Incident {
datetime_reported: string;

Choose a reason for hiding this comment

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

reported

@NikuPAN NikuPAN merged commit 05e801b into ERP-1936 Jul 15, 2024
1 check failed
@NikuPAN NikuPAN deleted the ERP-2024-Past-Incidents-Component branch August 2, 2024 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants