From c39f7f36c875f8afda015ce4159d3b9649e65165 Mon Sep 17 00:00:00 2001
From: Pavel Prichodko <14926950+prichodko@users.noreply.github.com>
Date: Tue, 17 Jan 2023 16:01:33 +0100
Subject: [PATCH] add icon and accept only size
---
packages/icons/src/index.tsx | 2 ++
packages/icons/src/lock-icon.tsx | 24 ++++++++++++++++++++++++
packages/icons/src/members-icon.tsx | 6 +++---
packages/icons/src/options-icon.tsx | 6 +++---
packages/icons/src/types.ts | 3 +++
5 files changed, 35 insertions(+), 6 deletions(-)
create mode 100644 packages/icons/src/lock-icon.tsx
diff --git a/packages/icons/src/index.tsx b/packages/icons/src/index.tsx
index e4471c39..6bed9823 100644
--- a/packages/icons/src/index.tsx
+++ b/packages/icons/src/index.tsx
@@ -1,2 +1,4 @@
+export { LockedIcon } from './lock-icon'
export { MembersIcon } from './members-icon'
export { OptionsIcon } from './options-icon'
+export type { IconProps } from './types'
diff --git a/packages/icons/src/lock-icon.tsx b/packages/icons/src/lock-icon.tsx
new file mode 100644
index 00000000..bae74102
--- /dev/null
+++ b/packages/icons/src/lock-icon.tsx
@@ -0,0 +1,24 @@
+import type { IconProps } from './types'
+
+export function LockedIcon(props: IconProps) {
+ const { color = 'currentColor', size = 20, ...rest } = props
+
+ // FIXME: not need to differentiate sizes in the designs
+ return (
+
+ )
+}
diff --git a/packages/icons/src/members-icon.tsx b/packages/icons/src/members-icon.tsx
index a5eb5976..83f3a9f5 100644
--- a/packages/icons/src/members-icon.tsx
+++ b/packages/icons/src/members-icon.tsx
@@ -1,12 +1,12 @@
import type { IconProps } from './types'
export function MembersIcon(props: IconProps) {
- const { color = 'currentColor', ...rest } = props
+ const { color = 'currentColor', size = 20, ...rest } = props
return (