Skip to content

Commit

Permalink
Rename button component
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinyaigeek committed Sep 23, 2024
1 parent ce305b4 commit 2d0f712
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import type React from "react";
import button from "./Button.module.css";
import type { FunctionComponent } from "react";
import button from "./button.module.css";

interface Props {
id: string;
children: React.ReactChild;
children: React.ReactNode;
}

export function Button(props: Props) {
export const Button: FunctionComponent<Props> = function (props: Props) {
return (
<div id={props.id} className={button.button}>
<button className={button.button} type="button">
{props.children}
</div>
</button>
);
}
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from "react";
import { Button } from "../Button/Button";
import { Button } from "../button/button";
import contact from "./Contact.module.css";

export default function Contact() {
Expand All @@ -16,7 +15,7 @@ export default function Contact() {
<br />
エモいをハックしたい
<br />
<Button id="thatsme--contact">Contact Me</Button>
<Button>Contact Me</Button>
<div className="mySnsBox">
<div className={contact.sns}>
{/* biome-ignore lint: reason */}
Expand All @@ -34,7 +33,7 @@ export default function Contact() {
className={contact.snsAnchor}
/>
</div>
<div className={contact.scs}>
<div className={contact.sns}>
{/* biome-ignore lint: reason */}
<a
id="linkedin"
Expand Down

0 comments on commit 2d0f712

Please sign in to comment.