Skip to content

Commit

Permalink
feat: docs (ant-design#1414)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfu1 authored Jul 12, 2022
1 parent 5bc79ba commit e94b12f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions packages/site/examples/map-heat/heatmap/demo/global-2d.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { useState, useEffect } from 'react';
import ReactDOM from 'react-dom';
import { HeatMap } from '@ant-design/maps';
import { GeographicHeatmap } from '@ant-design/maps';

const DemoHeatMap = () => {
const DemoGeographicHeatmap = () => {
const [data, setData] = useState({ type: 'FeatureCollection', features: [] });

useEffect(() => {
Expand Down Expand Up @@ -73,7 +73,7 @@ const DemoHeatMap = () => {
},
};

return <HeatMap {...config} />;
return <GeographicHeatmap {...config} />;
};

ReactDOM.render(<DemoHeatMap />, document.getElementById('container'));
ReactDOM.render(<DemoGeographicHeatmap />, document.getElementById('container'));
8 changes: 4 additions & 4 deletions packages/site/examples/map-heat/heatmap/demo/global-3d.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { useState, useEffect } from 'react';
import ReactDOM from 'react-dom';
import { HeatMap } from '@ant-design/maps';
import { GeographicHeatmap } from '@ant-design/maps';

const DemoHeatMap = () => {
const DemoGeographicHeatmap = () => {
const [data, setData] = useState({ type: 'FeatureCollection', features: [] });

useEffect(() => {
Expand Down Expand Up @@ -40,7 +40,7 @@ const DemoHeatMap = () => {
},
};

return <HeatMap {...config} />;
return <GeographicHeatmap {...config} />;
};

ReactDOM.render(<DemoHeatMap />, document.getElementById('container'));
ReactDOM.render(<DemoGeographicHeatmap />, document.getElementById('container'));
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { useState, useEffect } from 'react';
import ReactDOM from 'react-dom';
import { HeatMap } from '@ant-design/maps';
import { GeographicHeatmap } from '@ant-design/maps';

const DemoHeatMap = () => {
const DemoGeographicHeatmap = () => {
const [data, setData] = useState({ type: 'FeatureCollection', features: [] });

useEffect(() => {
Expand Down Expand Up @@ -74,7 +74,7 @@ const DemoHeatMap = () => {
},
};

return <HeatMap {...config} />;
return <GeographicHeatmap {...config} />;
};

ReactDOM.render(<DemoHeatMap />, document.getElementById('container'));
ReactDOM.render(<DemoGeographicHeatmap />, document.getElementById('container'));
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { useState, useEffect } from 'react';
import ReactDOM from 'react-dom';
import { HeatMap } from '@ant-design/maps';
import { GeographicHeatmap } from '@ant-design/maps';

const DemoHeatMap = () => {
const DemoGeographicHeatmap = () => {
const [data, setData] = useState({ type: 'FeatureCollection', features: [] });

useEffect(() => {
Expand Down Expand Up @@ -41,7 +41,7 @@ const DemoHeatMap = () => {
},
};

return <HeatMap {...config} />;
return <GeographicHeatmap {...config} />;
};

ReactDOM.render(<DemoHeatMap />, document.getElementById('container'));
ReactDOM.render(<DemoGeographicHeatmap />, document.getElementById('container'));

0 comments on commit e94b12f

Please sign in to comment.