Skip to content

Commit

Permalink
The file
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhattopi committed Aug 28, 2022
1 parent d0aa342 commit 4f1a16d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
11 changes: 10 additions & 1 deletion clockify/src/Components/Dashboard/dash/Slideclose.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React from 'react'
import React, { useEffect } from 'react'
import { useDispatch, useSelector } from 'react-redux'
import { NavLink } from 'react-router-dom'
import { getGoals } from '../../../features/goals/goalsSlice'
import styles from "./STYLE/Slideclose.module.css"
const navbaractive={
backgroundColor: "",
Expand All @@ -10,7 +12,14 @@ const navbarnotactive={
backgroundColor:"silver",
color:"white"
}

const Slideclose = () => {
// const {user}=useSelector(state=>state.auth)
// const dispatch=useDispatch()
// useEffect(()=>{
// if
// dispatch(getGoals())
// },[user])
return (
<div className={styles.main}>
<div className={styles.iconsname}>
Expand Down
15 changes: 4 additions & 11 deletions clockify/src/Components/TimerApp/TasksApp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ const navigate=useNavigate()
navigate("/login")
}


if(user){
dispatch(getGoals())
}




Expand All @@ -49,16 +51,7 @@ const navigate=useNavigate()
</div>
)
}
else if(isError){
return (
<div className={styles.Body1}>
<TaskInput/>
<h1 className={styles.Load2}><Spinner/></h1>
</div>
)


}else{
else{
return (
<div className={styles.Body1}>
<TaskInput/>
Expand Down

0 comments on commit 4f1a16d

Please sign in to comment.