File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ import BackArrow from "@/components/BackArrow";
10
10
export default function WorkDetail ( { params } : { params : { id : string } } ) {
11
11
const router = useRouter ( ) ;
12
12
13
+ const handleClose = ( ) => {
14
+ router . back ( ) ;
15
+ } ;
16
+
13
17
useEffect ( ( ) => {
14
18
// Fetch work details using params.id
15
19
// Update state with fetched data
@@ -28,7 +32,7 @@ export default function WorkDetail({ params }: { params: { id: string } }) {
28
32
className = "min-h-screen bg-background dark:bg-background-dark p-10 sm:p-12 md:p-16 flex flex-col relative pt-32"
29
33
>
30
34
< div className = "flex items-center mb-4" >
31
- < BackArrow />
35
+ < BackArrow onClose = { handleClose } />
32
36
< div className = "ml-8" >
33
37
< Breadcrumbs />
34
38
</ div >
You can’t perform that action at this time.
0 commit comments