directory
This commit is contained in:
parent
1064b3c505
commit
0dc12038fd
@ -63,7 +63,7 @@ const _nav = [
|
|||||||
|
|
||||||
{
|
{
|
||||||
component: CNavItem,
|
component: CNavItem,
|
||||||
name: 'Home Page Banners',
|
name: 'Home Screen Banners',
|
||||||
icon: <CIcon icon={cilNotes} customClassName="nav-icon" />,
|
icon: <CIcon icon={cilNotes} customClassName="nav-icon" />,
|
||||||
to: '/banner',
|
to: '/banner',
|
||||||
},
|
},
|
||||||
|
@ -12,7 +12,7 @@ import axios from 'axios'
|
|||||||
|
|
||||||
const setupAxios = () => {
|
const setupAxios = () => {
|
||||||
axios.defaults.baseURL = 'https://cms-api-dashboard.herokuapp.com/';
|
axios.defaults.baseURL = 'https://cms-api-dashboard.herokuapp.com/';
|
||||||
//axios.defaults.baseURL = 'http://localhost:5000'
|
// axios.defaults.baseURL = 'http://localhost:5000'
|
||||||
axios.defaults.headers = {
|
axios.defaults.headers = {
|
||||||
'Cache-Control': 'no-cache,no-store',
|
'Cache-Control': 'no-cache,no-store',
|
||||||
'Pragma': 'no-cache',
|
'Pragma': 'no-cache',
|
||||||
|
@ -69,7 +69,7 @@ function banner() {
|
|||||||
<div className="row">
|
<div className="row">
|
||||||
<div className="col-12">
|
<div className="col-12">
|
||||||
<div className="page-title-box d-flex align-items-center justify-content-between">
|
<div className="page-title-box d-flex align-items-center justify-content-between">
|
||||||
<h4 className="mb-3">Home Page Banners</h4>
|
<h4 className="mb-3">Home Screen Banners</h4>
|
||||||
<Link to="/addbanner"><button type="button" className="btn btn-info float-end mb-3 ml-4"> + Add Banner</button></Link>
|
<Link to="/addbanner"><button type="button" className="btn btn-info float-end mb-3 ml-4"> + Add Banner</button></Link>
|
||||||
{/* <div className="page-title-right">
|
{/* <div className="page-title-right">
|
||||||
<ol className="breadcrumb m-0">
|
<ol className="breadcrumb m-0">
|
||||||
|
@ -59,7 +59,7 @@ function ViewBanner() {
|
|||||||
<div className="row">
|
<div className="row">
|
||||||
<div className="col-12">
|
<div className="col-12">
|
||||||
<div className="page-title-box d-flex align-items-center justify-content-between">
|
<div className="page-title-box d-flex align-items-center justify-content-between">
|
||||||
<h4 className="mb-3">Home Page Banner</h4>
|
<h4 className="mb-3">Home Screen Banner</h4>
|
||||||
<Link to="/addbanner"><button type="button" className="btn btn-info float-end mb-3 ml-4"> + Add New Banner</button></Link>
|
<Link to="/addbanner"><button type="button" className="btn btn-info float-end mb-3 ml-4"> + Add New Banner</button></Link>
|
||||||
{/* <div className="page-title-right">
|
{/* <div className="page-title-right">
|
||||||
<ol className="breadcrumb m-0">
|
<ol className="breadcrumb m-0">
|
||||||
@ -87,7 +87,6 @@ function ViewBanner() {
|
|||||||
|
|
||||||
<tr><th>Id</th><td>{banner?._id}</td></tr>
|
<tr><th>Id</th><td>{banner?._id}</td></tr>
|
||||||
<tr><th>Title</th><td>{banner?.title}</td></tr>
|
<tr><th>Title</th><td>{banner?.title}</td></tr>
|
||||||
<tr> <th>Sub Title</th><td>{banner?.subTitle}</td></tr>
|
|
||||||
|
|
||||||
<tr> <th>Image</th> <td>
|
<tr> <th>Image</th> <td>
|
||||||
<img src={`${banner.image?.url}`} width="50" alt="" />
|
<img src={`${banner.image?.url}`} width="50" alt="" />
|
||||||
|
Loading…
Reference in New Issue
Block a user