Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
feat: add input component
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Pereira Woitechen committed Jul 1, 2020
1 parent 44706f8 commit ab0555c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
7 changes: 7 additions & 0 deletions src/components/Input.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React, { ReactElement } from "react";

function Input(): ReactElement {
return <input />;
}

export default Input;
12 changes: 0 additions & 12 deletions src/stories/Button.stories.tsx

This file was deleted.

11 changes: 11 additions & 0 deletions src/stories/Input.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from "react";
import Input from "../components/Input";

export default {
title: "Input",
component: Input,
};

export function Default() {
return <Input />;
}
5 changes: 2 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"jsx": "react",
"moduleResolution": "node",
"rootDirs": ["src"],
"baseUrl": "src",
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,
"noImplicitThis": true,
Expand All @@ -18,9 +17,9 @@
"suppressImplicitAnyIndexErrors": true,
"noUnusedLocals": true,
"declaration": true,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true
"emitDecoratorMetadata": true,
"esModuleInterop": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "build", "scripts"]
Expand Down

0 comments on commit ab0555c

Please sign in to comment.