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="/">
|
||||
{/* <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" icon={sygnet} height={35} />
|
||||
</CSidebarBrand>
|
||||
|
@ -12,7 +12,7 @@ import axios from 'axios'
|
||||
|
||||
const setupAxios = () => {
|
||||
axios.defaults.baseURL = 'https://atpapi.checkapp.one'
|
||||
// axios.defaults.baseURL = 'http://localhost:5000'
|
||||
//axios.defaults.baseURL = 'http://localhost:5000'
|
||||
axios.defaults.headers = {
|
||||
'Cache-Control': 'no-cache,no-store',
|
||||
'Pragma': 'no-cache',
|
||||
|
@ -201,7 +201,7 @@ const Cities = () => {
|
||||
btn btn-primary btn-sm
|
||||
waves-effect waves-light
|
||||
btn-table
|
||||
ml-2
|
||||
me-1
|
||||
"
|
||||
>
|
||||
Edit
|
||||
@ -220,7 +220,7 @@ const Cities = () => {
|
||||
btn btn-danger btn-sm
|
||||
waves-effect waves-light
|
||||
btn-table
|
||||
ml-2
|
||||
me-1
|
||||
|
||||
"
|
||||
onClick={() => {
|
||||
|
@ -201,7 +201,7 @@ const States = () => {
|
||||
btn btn-primary btn-sm
|
||||
waves-effect waves-light
|
||||
btn-table
|
||||
ml-2
|
||||
me-1
|
||||
"
|
||||
>
|
||||
Edit
|
||||
@ -220,7 +220,7 @@ const States = () => {
|
||||
btn btn-danger btn-sm
|
||||
waves-effect waves-light
|
||||
btn-table
|
||||
ml-2
|
||||
me-1
|
||||
|
||||
"
|
||||
onClick={() => {
|
||||
|
@ -11,7 +11,7 @@ const Dashboard = () => {
|
||||
const [users, setUsers] = useState([])
|
||||
const token = isAutheticated();
|
||||
|
||||
const getAllUsers = useCallback(async () => {
|
||||
const getAllUsers = async () => {
|
||||
let res = await axios.get(
|
||||
`/api/v1/admin/users`,
|
||||
{
|
||||
@ -24,7 +24,7 @@ const Dashboard = () => {
|
||||
setUsers(res.data.users)
|
||||
|
||||
|
||||
}, [token]);
|
||||
}
|
||||
// //2nd
|
||||
// const [category, setCategory] = useState([])
|
||||
// const getAllCategory = useCallback(async () => {
|
||||
@ -106,14 +106,10 @@ const Dashboard = () => {
|
||||
|
||||
|
||||
// }, [token]);
|
||||
// useEffect(() => {
|
||||
// getAllUsers();
|
||||
// getAllCategory()
|
||||
// getRequirement()
|
||||
// getNews()
|
||||
// getOffer()
|
||||
// getEvent()
|
||||
// }, [getAllUsers, getAllCategory, getRequirement, getNews, getOffer, getEvent]);
|
||||
useEffect(() => {
|
||||
getAllUsers();
|
||||
|
||||
}, [token]);
|
||||
return (
|
||||
<>
|
||||
<WidgetsDropdown users={users} />
|
||||
|
Loading…
Reference in New Issue
Block a user