Created
September 16, 2024 19:26
-
-
Save PCreations/8d1c0d0f3ccdb63784b381cafe8939fb to your computer and use it in GitHub Desktop.
95de1299afa7.diff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-1,10 +1,10 @@ | |
import * as elements from 'typed-html'; | |
-export const Button = ({ name }: { name: string }) => { | |
+export const Button = ({ name, type }: { name: string; type: string }) => { | |
return ( | |
<button | |
class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" | |
- type="submit" | |
+ type={type} | |
> | |
{name} | |
</button> | |
diff --git a/src/components/layout.tsx b/src/components/layout.tsx | |
new file mode 100644 | |
index 0000000..d771826 | |
--- /dev/null | |
+++ b/src/components/layout.tsx | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment