Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[fix] copy map config style (#2878)

Isaac Brodskyd549fcd4e60c
diff --git a/src/components/src/modals/export-map-modal/export-json-map.tsx b/src/components/src/modals/export-map-modal/export-json-map.tsx
index 255cee8bd..0265ed61e 100644
--- a/src/components/src/modals/export-map-modal/export-json-map.tsx
+++ b/src/components/src/modals/export-map-modal/export-json-map.tsx
@@ -72,7 +72,7 @@ const ExportJsonMapUnmemoized = ({config = {}}: ExportJsonPropTypes) => {
<div className="viewer">
<JSONPretty id="json-pretty" json={config} />
<CopyToClipboard text={JSON.stringify(config)} onCopy={() => setCopy(true)}>
- <Button width="80px">{copied ? 'Copied!' : 'Copy'}</Button>
+ <Button width="80px" className="copy-button">{copied ? 'Copied!' : 'Copy'}</Button>
</CopyToClipboard>
</div>
<div className="disclaimer">