mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-20 22:07:15 +00:00
chore: update shortcut name
This commit is contained in:
parent
8a1d7c4646
commit
997aa8cb52
@ -26,7 +26,7 @@ const ShortcutListView: React.FC<Props> = (props: Props) => {
|
|||||||
|
|
||||||
const handleCopyButtonClick = (shortcut: Shortcut) => {
|
const handleCopyButtonClick = (shortcut: Shortcut) => {
|
||||||
const workspace = workspaceService.getWorkspaceById(workspaceId);
|
const workspace = workspaceService.getWorkspaceById(workspaceId);
|
||||||
copy(`${location.host}/${workspace?.name}/go/${shortcut.name}`);
|
copy(`${location.host}/${workspace?.name}/o/${shortcut.name}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleEditShortcutButtonClick = (shortcut: Shortcut) => {
|
const handleEditShortcutButtonClick = (shortcut: Shortcut) => {
|
||||||
|
@ -62,7 +62,7 @@ const router = createBrowserRouter([
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/:workspaceName/go/:shortcutName",
|
path: "/:workspaceName/o/:shortcutName",
|
||||||
element: <ShortcutRedirector />,
|
element: <ShortcutRedirector />,
|
||||||
loader: async () => {
|
loader: async () => {
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user