Skip to content

Commit

Permalink
feat: CustomButton component added
Browse files Browse the repository at this point in the history
  • Loading branch information
Damla Koksal committed Oct 27, 2020
1 parent 75cd51d commit 2b84855
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/components/custom-button/custom-button.component.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from "react";

import "./custom-button.styles.scss";

export default function CustomButton({ children }) {
return <button className="custom-button">{children}</button>;
}
4 changes: 4 additions & 0 deletions src/components/custom-button/custom-button.styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.custom-button {
border: 0.2rem solid black;
background-color: Transparent;
}
3 changes: 2 additions & 1 deletion src/components/layout/header/header.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Link } from "react-router-dom";
import Logo from "../../logo/logo.component";
import Menu from "../../menu/menu.component";
import BlockQuote from "../../block-quote/block-quote.component";
import CustomButton from "../../custom-button/custom-button.component";

import "./header.styles.scss";

Expand Down Expand Up @@ -30,7 +31,7 @@ function Header() {
</nav>
<div className="block-quote-container">
<BlockQuote>test deneme test</BlockQuote>
<button>&#8642;</button>
<CustomButton>&#8642;</CustomButton>
</div>
</div>
);
Expand Down

0 comments on commit 2b84855

Please sign in to comment.