customn temaplte

This commit is contained in:
CHIEFSOFT\ameye
2025-10-05 13:53:11 -04:00
parent 8e09c30c5c
commit 683f81e8a6
2 changed files with 19 additions and 1 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

@@ -3,6 +3,8 @@ import getImage from "../../../utils/getImage";
import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query';
import queryKeys from '../../../services/queryKeys';
import {getProductTemplateData, activateTemplate} from '../../../services/services';
import {Link} from "react-router-dom";
import siteLinks from "../../../links/siteLinks";
const SiteTemplateSelector = memo(({name = 'Full Name', data, productData}) => {
@@ -60,7 +62,23 @@ const SiteTemplateSelector = memo(({name = 'Full Name', data, productData}) => {
}
if (custom_template_name && custom_template_name != '') {
// This implies we have a custom template , just return here
return <>This product is using a custom template named {custom_template_name} </>
return <>
<div className='col-12'>
<div
className="rounded-2 d-flex flex-column justify-content-between align-items-center"
style={{backgroundColor: '#F2FAF7'}}>
<h4 className='p-4 text-black'
style={{marginBottom: '20px'}}>Custom Product Template.</h4>
<img className='' style={{width: '200px'}}
src={getImage('custom-template.png')}
alt='mail-alert'/>
<h4 className='p-4 text-black'
style={{marginTop: '20px'}}>This product is using a custom template named<span
style={{color: 'darkred'}}></span> {custom_template_name}.</h4>
</div>
</div>
</>
}
return (
<div className="page-account-form">