import { SectionGridCards } from '../shared/SectionGridCards'; import sections from './sections.json'; import { Layout } from '../layout/Layout'; import { Button, Stack, Typography } from '@mui/material'; import axios from 'axios'; import { toast } from 'react-toastify'; export const CatalogPage = () => { const handleGetSync = async () => { const url = '/wp-json/vendorfuel/sync'; const config = { headers: { 'X-WP-Nonce': localized.nonce }, }; await axios.get(url, config).then((response) => { toast.info(response.data); }); }; const handleDestroySync = async () => { const url = '/wp-json/vendorfuel/sync'; const config = { headers: { 'X-WP-Nonce': localized.nonce }, }; await axios.delete(url, config).then((response) => { toast.success(response.data); }); }; return ( WordPress synchronization VendorFuel synchronizes products and categories with WordPress whenever a product or category is saved, or can be manually synchronized. If you are not seeing your product or category on the frontend attempting to sync, you can check the status or cancel the synching process. ); };