From 497410753f1a76a2fd4d431dc9f6e890efcfec23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Synowiec?= Date: Sun, 26 Mar 2023 22:20:13 +0200 Subject: [PATCH 01/10] chore: add loremflickr.com url --- apps/web/next.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 1abd819..2d63c7c 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -3,6 +3,7 @@ const nextConfig = { images: { domains: [ 'avatars.githubusercontent.com', + 'loremflickr.com', 'images.unsplash.com', 'cdn.pixabay.com', ], From a14b11898f0018e90d203377af18b30d3508e351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Synowiec?= Date: Sun, 26 Mar 2023 22:21:30 +0200 Subject: [PATCH 02/10] fix: add default checked props --- packages/ui/components/molecules/checkbox/checkbox.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ui/components/molecules/checkbox/checkbox.tsx b/packages/ui/components/molecules/checkbox/checkbox.tsx index 8d1284c..77dc690 100644 --- a/packages/ui/components/molecules/checkbox/checkbox.tsx +++ b/packages/ui/components/molecules/checkbox/checkbox.tsx @@ -2,9 +2,10 @@ import { useId } from 'react'; type CheckboxProps = { label: string; + checked: boolean; }; -export const Checkbox = ({ label }: CheckboxProps) => { +export const Checkbox = ({ label, checked }: CheckboxProps) => { const id = useId(); return (
@@ -12,6 +13,7 @@ export const Checkbox = ({ label }: CheckboxProps) => { id={id} name={id} type="checkbox" + checked={checked} className="h-4 w-4 rounded-lg border-gray-200 text-indigo-600 dark:border-gray-300 focus:ring-indigo-500" />