Showing
1 changed file
with
15 additions
and
0 deletions
front/src/Components/Button.js
0 → 100644
1 | +import React from "react"; | ||
2 | +import styled from "styled-components"; | ||
3 | +import propTypes from "prop-types"; | ||
4 | + | ||
5 | +const Container = styled.button` | ||
6 | + border: 0; | ||
7 | +`; | ||
8 | + | ||
9 | +const Button = ({ text }) => <Container>{text}</Container>; | ||
10 | + | ||
11 | +Button.propTypes = { | ||
12 | + text: propTypes.string.isRequired, | ||
13 | +}; | ||
14 | + | ||
15 | +export default Button; |
-
Please register or login to post a comment