product complete
This commit is contained in:
parent
1db9ed6aca
commit
cf6dca4b7c
@ -65,7 +65,7 @@ const AppSidebar = () => {
|
|||||||
<CSidebarBrand className="d-none d-md-flex" style={{ background: 'rgb(140, 213, 213)' }} to="/">
|
<CSidebarBrand className="d-none d-md-flex" style={{ background: 'rgb(140, 213, 213)' }} to="/">
|
||||||
{/* <CIcon className="sidebar-brand-full" icon={logoNegative} height={35} /> */}
|
{/* <CIcon className="sidebar-brand-full" icon={logoNegative} height={35} /> */}
|
||||||
|
|
||||||
{HeaderlogoUrl ? <Link to='/dashboard'><img src={HeaderlogoUrl} alt={`${<h1>ATP Dashboard</h1>}`} /></Link> : <h1>ATP Dashboard</h1>}
|
{HeaderlogoUrl ? <Link to='/dashboard'><img src={HeaderlogoUrl} alt='' /></Link> : <h2>ATP Dashboard</h2>}
|
||||||
{/* <CIcon className="sidebar-brand-narrow" height={35} /> */}
|
{/* <CIcon className="sidebar-brand-narrow" height={35} /> */}
|
||||||
<CIcon className="sidebar-brand-narrow" icon={sygnet} height={35} />
|
<CIcon className="sidebar-brand-narrow" icon={sygnet} height={35} />
|
||||||
</CSidebarBrand>
|
</CSidebarBrand>
|
||||||
|
@ -12,7 +12,7 @@ import axios from 'axios'
|
|||||||
|
|
||||||
const setupAxios = () => {
|
const setupAxios = () => {
|
||||||
axios.defaults.baseURL = 'https://atpapi.checkapp.one'
|
axios.defaults.baseURL = 'https://atpapi.checkapp.one'
|
||||||
// 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',
|
||||||
|
@ -201,7 +201,7 @@ const Cities = () => {
|
|||||||
btn btn-primary btn-sm
|
btn btn-primary btn-sm
|
||||||
waves-effect waves-light
|
waves-effect waves-light
|
||||||
btn-table
|
btn-table
|
||||||
ml-2
|
me-1
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
Edit
|
Edit
|
||||||
@ -220,7 +220,7 @@ const Cities = () => {
|
|||||||
btn btn-danger btn-sm
|
btn btn-danger btn-sm
|
||||||
waves-effect waves-light
|
waves-effect waves-light
|
||||||
btn-table
|
btn-table
|
||||||
ml-2
|
me-1
|
||||||
|
|
||||||
"
|
"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
@ -201,7 +201,7 @@ const States = () => {
|
|||||||
btn btn-primary btn-sm
|
btn btn-primary btn-sm
|
||||||
waves-effect waves-light
|
waves-effect waves-light
|
||||||
btn-table
|
btn-table
|
||||||
ml-2
|
me-1
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
Edit
|
Edit
|
||||||
@ -220,7 +220,7 @@ const States = () => {
|
|||||||
btn btn-danger btn-sm
|
btn btn-danger btn-sm
|
||||||
waves-effect waves-light
|
waves-effect waves-light
|
||||||
btn-table
|
btn-table
|
||||||
ml-2
|
me-1
|
||||||
|
|
||||||
"
|
"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
@ -11,7 +11,7 @@ const Dashboard = () => {
|
|||||||
const [users, setUsers] = useState([])
|
const [users, setUsers] = useState([])
|
||||||
const token = isAutheticated();
|
const token = isAutheticated();
|
||||||
|
|
||||||
const getAllUsers = useCallback(async () => {
|
const getAllUsers = async () => {
|
||||||
let res = await axios.get(
|
let res = await axios.get(
|
||||||
`/api/v1/admin/users`,
|
`/api/v1/admin/users`,
|
||||||
{
|
{
|
||||||
@ -24,7 +24,7 @@ const Dashboard = () => {
|
|||||||
setUsers(res.data.users)
|
setUsers(res.data.users)
|
||||||
|
|
||||||
|
|
||||||
}, [token]);
|
}
|
||||||
// //2nd
|
// //2nd
|
||||||
// const [category, setCategory] = useState([])
|
// const [category, setCategory] = useState([])
|
||||||
// const getAllCategory = useCallback(async () => {
|
// const getAllCategory = useCallback(async () => {
|
||||||
@ -106,14 +106,10 @@ const Dashboard = () => {
|
|||||||
|
|
||||||
|
|
||||||
// }, [token]);
|
// }, [token]);
|
||||||
// useEffect(() => {
|
useEffect(() => {
|
||||||
// getAllUsers();
|
getAllUsers();
|
||||||
// getAllCategory()
|
|
||||||
// getRequirement()
|
}, [token]);
|
||||||
// getNews()
|
|
||||||
// getOffer()
|
|
||||||
// getEvent()
|
|
||||||
// }, [getAllUsers, getAllCategory, getRequirement, getNews, getOffer, getEvent]);
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<WidgetsDropdown users={users} />
|
<WidgetsDropdown users={users} />
|
||||||
|
Loading…
Reference in New Issue
Block a user