Skip to content

Commit

Permalink
Allow providing additional inputs to export component
Browse files Browse the repository at this point in the history
  • Loading branch information
supersonicclay committed Sep 25, 2020
1 parent 70af0d6 commit 5e07db0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/editor/src/export-component.tsx
Expand Up @@ -44,6 +44,7 @@ const FooterRow = styled.div`
export type ExportComponentProps = {
features: any;
onClose: () => unknown;
additionalInputs?: React.ReactNode;
};

export function ExportComponent(props: ExportComponentProps) {
Expand Down Expand Up @@ -113,6 +114,7 @@ export function ExportComponent(props: ExportComponentProps) {
}
/>
</ExportArea>
{props.additionalInputs || null}
<FooterRow>
<Button style={{ backgroundColor: 'rgb(0, 105, 217)' }} onClick={downloadData}>
Download
Expand Down

0 comments on commit 5e07db0

Please sign in to comment.