summaryrefslogtreecommitdiff
path: root/admin/src/components
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-02-05 13:19:56 +0300
committerValentin Popov <valentin@popov.link>2026-02-05 13:19:56 +0300
commitefa89313fa4152252b477aafd88f7cf4a66747d8 (patch)
tree5939b251fe1bbc6bea3881a71154cabd3aa538ec /admin/src/components
parentf6de8611955bf382612996500efba21a2d64ea1f (diff)
downloadstrapi-plugin-checkbox-list-efa89313fa4152252b477aafd88f7cf4a66747d8.tar.xz
strapi-plugin-checkbox-list-efa89313fa4152252b477aafd88f7cf4a66747d8.zip
Initial Strapi plugin project
Diffstat (limited to 'admin/src/components')
-rw-r--r--admin/src/components/Initializer.tsx19
-rw-r--r--admin/src/components/PluginIcon.tsx5
2 files changed, 24 insertions, 0 deletions
diff --git a/admin/src/components/Initializer.tsx b/admin/src/components/Initializer.tsx
new file mode 100644
index 0000000..8188291
--- /dev/null
+++ b/admin/src/components/Initializer.tsx
@@ -0,0 +1,19 @@
+import { useEffect, useRef } from 'react';
+
+import { PLUGIN_ID } from '../pluginId';
+
+type InitializerProps = {
+ setPlugin: (id: string) => void;
+};
+
+const Initializer = ({ setPlugin }: InitializerProps) => {
+ const ref = useRef(setPlugin);
+
+ useEffect(() => {
+ ref.current(PLUGIN_ID);
+ }, []);
+
+ return null;
+};
+
+export { Initializer };
diff --git a/admin/src/components/PluginIcon.tsx b/admin/src/components/PluginIcon.tsx
new file mode 100644
index 0000000..54174ba
--- /dev/null
+++ b/admin/src/components/PluginIcon.tsx
@@ -0,0 +1,5 @@
+import { PuzzlePiece } from '@strapi/icons';
+
+const PluginIcon = () => <PuzzlePiece />;
+
+export { PluginIcon };