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

Waitp 1239 static text visuals #4732

Merged
merged 19 commits into from
Jul 16, 2023

Conversation

alexd-bes
Copy link
Contributor

Issue WAITP-1239: Static Text Visuals

Changes:

  • Added visuals for singleDate, singleValue, singleDownloadLink, multiValue and multiValueRow
  • Handled no data messages
  • renamed props from viewContent to report and config and updated types and other terminology to match

Screenshots:

Screenshot 2023-07-13 at 3 23 44 pm

Screenshot 2023-07-13 at 3 24 21 pm

Screenshot 2023-07-13 at 3 24 31 pm

};

export const SingleDownloadLink = ({ data, config }: SingleDownloadLinkProps) => {
const { value } = data![0];
Copy link
Contributor

Choose a reason for hiding this comment

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

I see that data is optional above but won't this throw an error if data is undefined?

};

export const SingleDate = ({ data }: SingleDateProps) => {
const { value } = data![0];
Copy link
Contributor

Choose a reason for hiding this comment

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

Wont this error if data is undefined?

Copy link
Contributor

@tcaiger tcaiger left a comment

Choose a reason for hiding this comment

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

Nice work - great to see the last of the visuals coming through. I just left a few comments but nothing major.

alexd-bes and others added 2 commits July 13, 2023 16:27
@alexd-bes alexd-bes requested a review from tcaiger July 13, 2023 04:36
Copy link
Contributor

@tcaiger tcaiger left a comment

Choose a reason for hiding this comment

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

🎉

@alexd-bes alexd-bes merged commit 7235f9d into epic-frontend-rewrite Jul 16, 2023
@alexd-bes alexd-bes deleted the waitp-1239-static-text-visuals branch July 16, 2023 23:23
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