Skip to content

Commit

Permalink
Fix: setDegree 쓰이지 않는 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
hhbb0081 committed Nov 11, 2023
1 parent 891afb2 commit 406115a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/OrderStatus/OrderStatus.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ import Progressbar from "../../components/views/ProgressBar/ProgressBar";
function OrderStatus (){
const [degree, setDegree] = useState(0);

const refreshDegree = () => setDegree((prev) => (prev !== 3 ? prev + 1 : 0));

return(
<section className="status-container">
<div className="status-nav-bar__wrapper">
<div className="status-nav-bar">
<Link to="/storage"><img src={close} className="close-btn" alt={close}/></Link>
<img src={refresh} className="refresh-btn" alt={refresh}/>
<img src={refresh} className="refresh-btn" alt={refresh} onClick={refreshDegree}/>
</div>
<div className="status-time-wrapper">
<div className="status-time">
Expand Down

0 comments on commit 406115a

Please sign in to comment.