diff --git a/react/components/iconselectcontrol.js b/react/components/iconselectcontrol.js
index 143aa4d..144c801 100644
--- a/react/components/iconselectcontrol.js
+++ b/react/components/iconselectcontrol.js
@@ -11,21 +11,12 @@ export default function Edit(props) {
const [popups, setPopups] = useState([]);
const [icons, setIcons] = useState([]); // To hold the icon data
- // Fetch published popups (lcp-popup CPT)
- useEffect(() => {
- const fetchPopups = async () => {
- const response = await fetch('/wp-json/wp/v2/lcp-popup');
- const data = await response.json();
- setPopups(data);
- };
- fetchPopups();
- }, []);
- // Fetch icon data from the JSON source (local or remote)
+ // Fetch icon data from the JSON source
useEffect(() => {
const fetchIcons = async () => {
// Assuming the icon data is in a file called 'icons.json'
- const response = await fetch('/path/to/icons.json');
+ const response = await fetch('/iconsvgs.json');
const iconData = await response.json();
setIcons(iconData); // Set the fetched icon data
};
@@ -46,22 +37,9 @@ export default function Edit(props) {
return (
<>
-