Skip to content

Commit

Permalink
Onboard materials
Browse files Browse the repository at this point in the history
  • Loading branch information
johnny-t06 committed Oct 11, 2024
1 parent 3c7e1c9 commit 87af031
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/ExampleButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { addUser } from "@/app/api/user/route.client";
import { Icon } from "@iconify/react/dist/iconify.js";

interface ExampleButtonProps {
buttonText: string;
Expand All @@ -7,7 +8,7 @@ interface ExampleButtonProps {
const ExampleButton = ({ buttonText }: ExampleButtonProps) => {
return (
<button
className="bg-slate-700 text-white p-4 rounded-full"
className="bg-slate-700 text-white p-4 rounded-full flex flex-row items-center gap-3"
onClick={async () => {
const response = await addUser({
body: {
Expand All @@ -21,6 +22,7 @@ const ExampleButton = ({ buttonText }: ExampleButtonProps) => {
}}
>
{buttonText}
<Icon icon="tabler:click" width="20" />
</button>
);
};
Expand Down

0 comments on commit 87af031

Please sign in to comment.