import * as React from "react" import { storiesOf } from "@storybook/react" import { ThemeProvider } from "styled-components" import { theme } from "../../../" import Adore from "../components/ButtonAdore" import { compose, withProps } from "recompose" import * as Button from "../../../components/Button" const ButtonAdoreWithData = compose( withProps((props) => { return { callSaveAdore: (count) => { const url: string = "http://localhost:3007/asset/heart/episode/eatmeagain007/" + count console.log(url) // await fetch(url, { // method: 'PUT', // headers: { // 'Content-Type': 'application/json' // }, // }) } } }) )(Adore) as any storiesOf("Adore", module) .addDecorator((story) => ( {story()} )) .add("adore with fix position", () => (
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
6767
a
a
56
a
a
44
44
44
44
44
44
44
44
44
44
44
44
4234324324324324
{ console.log("click") }} > button
))