From 64f473d214c687b6fbf1f120ab102ed001723c38 Mon Sep 17 00:00:00 2001 From: Marvin Sextro Date: Mon, 27 Dec 2021 19:06:31 +0100 Subject: [PATCH] Added QR code viewer and fixed button behavior --- components/Button.tsx | 5 +++++ components/Form.tsx | 4 ++-- package.json | 1 + pages/pass.tsx | 42 ++++++++++++++++++++++++++++++++++++++++++ src/payload.ts | 33 ++++++++++++++++++++++++++++++--- yarn.lock | 26 ++++++++++++++++++++++++-- 6 files changed, 104 insertions(+), 7 deletions(-) create mode 100644 pages/pass.tsx diff --git a/components/Button.tsx b/components/Button.tsx index b9e53be..b8326d4 100644 --- a/components/Button.tsx +++ b/components/Button.tsx @@ -11,6 +11,11 @@ export enum ButtonType { button = 'button', } +Button.defaultProps = { + loading: false, + type: ButtonType.button, +} + function Button(props: ButtonProps): JSX.Element { return (