Skip to content

Commit

Permalink
#3172: Add Geo layout placeholder story
Browse files Browse the repository at this point in the history
  • Loading branch information
gjvoosten committed Sep 16, 2020
1 parent 2610226 commit 3537817
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
15 changes: 8 additions & 7 deletions client/src/layouts/geoLayout.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import PropTypes from "prop-types"
import React from "react"

const geoLayout = ({ item, dimensions }) => {
return (
<>
Hello {item} {dimensions}
</>
)
const geoLayout = (item, dimensions) => {
// FIXME: do something useful instead
return {
x: 0,
y: 0,
width: dimensions.width,
height: dimensions.height
}
}
geoLayout.propTypes = {
item: PropTypes.object,
Expand Down
7 changes: 7 additions & 0 deletions client/stories/HeatMap.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ Month.args = {
layoutType: layouts.TYPES.MONTH
}

export const Geo = Template.bind({})

Geo.args = {
...defaultArgs,
layoutType: layouts.TYPES.GEO
}

export default {
title: "ANET/HeatMap",
component: HeatMap
Expand Down

0 comments on commit 3537817

Please sign in to comment.