Skip to content

Commit

Permalink
add fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiapoh committed May 25, 2020
1 parent 15e4d57 commit fd2490f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/panel/pages/request/components/Search.fixture.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from "react";
import { schema } from "./Schema.fixture";
import { Search } from "./Search";

const typeMap = schema.getTypeMap();
const setTypeMock = (type: any) => console.log(type);

export default {
basic: (
<div style={{ position: "relative", width: "100%" }}>
<Search typeMap={typeMap} setType={setTypeMock} />
</div>
),
};

0 comments on commit fd2490f

Please sign in to comment.