mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Merge pull request #27316 from overleaf/dp-file-menu-options
Add copy and submit project options to new editor file menu GitOrigin-RevId: 7f402d96f278f2b084375441089b286adaa731b8
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { useCallback } from 'react'
|
||||
import { useLocation } from './use-location'
|
||||
|
||||
export default function useOpenProject() {
|
||||
const location = useLocation()
|
||||
|
||||
const openProject = useCallback(
|
||||
(projectId: string) => {
|
||||
location.assign(`/project/${projectId}`)
|
||||
},
|
||||
[location]
|
||||
)
|
||||
|
||||
return openProject
|
||||
}
|
||||
Reference in New Issue
Block a user