-
Notifications
You must be signed in to change notification settings - Fork 7
render exports #2232
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
base: main
Are you sure you want to change the base?
render exports #2232
Conversation
|
import { csvDownloadHandler } from '@/utils/csvDownload'; | ||
|
||
export type ExportData = { | ||
action: string; |
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.
As far as I can see only the download_url and entity_type properties are use in the button right? Or am I missing something? If so I think we should simplify this and add these to the ExportButtonProps directly.
boxShadow: `0 ${theme.size.xs} ${theme.size.base} ${theme.colors.primary}35`, | ||
}} | ||
> | ||
{isFetching ? 'Downloading...' : 'Download CSV'} |
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.
Translate?
type SearchState = { | ||
parameters: AnySearchParameters; | ||
results: AnySearchResult[]; | ||
export_data?: ExportData | null; |
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.
camelCase
export_data?: ExportData | null; | |
exportData?: ExportData | null; |
No description provided.