added template media set endpoint

This commit is contained in:
victorAnumudu
2026-01-21 03:27:48 +01:00
parent 51887cf0d6
commit a7e2e865de
3 changed files with 56 additions and 51 deletions
@@ -9,6 +9,8 @@ import UploadModal from './UploadModal';
const TemplateConfigure = ({productData}) => {
const [selectedSectionDetails, setSelectedSectionDetails] = useState({})
// /panel/myproduct/template-config
const queryClient = useQueryClient()
@@ -96,7 +98,7 @@ const TemplateConfigure = ({productData}) => {
}}>
<div style={{textAlign: 'right',width: '100%'}}></div>
{/* [Change Image] */}
<label className='w-100 text-end' data-bs-toggle="modal" data-bs-target="#verticalCenter" style={{cursor: 'pointer'}}>[Change Image]</label>
<label onClick={()=>setSelectedSectionDetails(item)} className='w-100 text-end' data-bs-toggle="modal" data-bs-target="#verticalCenter" style={{cursor: 'pointer'}}>[Change Image]</label>
{/* <input id={item?.id} name={item?.id} className="d-none form-control form-control-sm" type="file" onChange={handleFileChange}/> */}
<div>
<h5 className="mt-0 mb-1">{item?.name}</h5>
@@ -121,7 +123,7 @@ const TemplateConfigure = ({productData}) => {
} </div>
<UploadModal />
<UploadModal productId={productData?.product_id} selectedSectionDetails={selectedSectionDetails} />
</>
}