Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
fix: navigate error
Browse files Browse the repository at this point in the history
  • Loading branch information
BoYanZh committed Mar 20, 2024
1 parent 6f1343d commit bbae20e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/Admin/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ const Confirmation = () => {
<div className='d-flex justify-content-end'>
<Button
variant='outline-success'
onClick={() => navigate('/movie', { replace: true })}
onClick={() => navigate('/admin/movie', { replace: true })}
>
Manage movies
</Button>
<Button
variant='outline-success'
onClick={() => navigate('/user', { replace: true })}
onClick={() => navigate('/admin/user', { replace: true })}
>
Manage users
</Button>
<Button
variant='outline-success'
onClick={() => navigate('/promo', { replace: true })}
onClick={() => navigate('/admin/promo', { replace: true })}
>
Manage promos
</Button>
Expand Down

0 comments on commit bbae20e

Please sign in to comment.