Skip to content

Commit 8e12a55

Browse files
Feat/small fixes (#113)
1 parent 6096a02 commit 8e12a55

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

packages/ui/src/components/checkbox/checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Checkbox = React.forwardRef<React.ElementRef<typeof CheckboxPrimitive.Root
2020
{...props}
2121
>
2222
<CheckboxPrimitive.Indicator className={styles.indicator}>
23-
{Icon ? <Icon className={styles.check} /> : <CheckIcon className={styles.check} />}{' '}
23+
{Icon ? <Icon className={styles.check} /> : <CheckIcon className={styles.check} />}
2424
</CheckboxPrimitive.Indicator>
2525
</CheckboxPrimitive.Root>
2626
)

packages/ui/src/components/icon-button/icon-button.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ function IconButton({
5757
const IconComponent = Icon as React.ComponentType<{ size?: number }>;
5858

5959
if (!Icon) {
60-
console.warn(`Icon "${name}" not found in lucide-react`);
61-
return null;
60+
throw new Error(`Icon "${name}" not found in lucide-react`);
6261
}
6362

6463
const content = <IconComponent size={iconSize} />;

packages/ui/src/components/search-bar/search-bar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const SearchBar = ({
4040
suffix={
4141
searchQuery && (
4242
<IconButton
43-
name="XIcon"
43+
name="X"
4444
onClick={handleClear}
4545
className={styles['clear-button']}
4646
label="Clear search"

0 commit comments

Comments
 (0)