-
Notifications
You must be signed in to change notification settings - Fork 7
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
Waitp 1239 static text visuals #4732
Conversation
}; | ||
|
||
export const SingleDownloadLink = ({ data, config }: SingleDownloadLinkProps) => { | ||
const { value } = data![0]; |
There was a problem hiding this comment.
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]; |
There was a problem hiding this comment.
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?
packages/tupaia-web/src/features/DashboardItem/DashboardItemContent.tsx
Outdated
Show resolved
Hide resolved
packages/tupaia-web/src/features/DashboardItem/DashboardItemContent.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
Co-authored-by: Tom Caiger <caigertom@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Issue WAITP-1239: Static Text Visuals
Changes:
singleDate
,singleValue
,singleDownloadLink
,multiValue
andmultiValueRow
viewContent
toreport
andconfig
and updated types and other terminology to matchScreenshots: