mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-18 13:54:24 +01:00
feat: added "Project Listed" modal
This commit is contained in:
@@ -14,6 +14,10 @@ type RouteOptions =
|
||||
title?: string,
|
||||
username?: string,
|
||||
}
|
||||
| {
|
||||
type: "edit-story",
|
||||
id?: number,
|
||||
}
|
||||
| {
|
||||
type: "bounty",
|
||||
id: string | number,
|
||||
@@ -47,6 +51,10 @@ export function createRoute(options: RouteOptions) {
|
||||
return `/blog/post/story/${options.id}`
|
||||
+ (options.title ? `/${toSlug(options.title)}` : "");
|
||||
|
||||
|
||||
if (options.type === "edit-story")
|
||||
return `/blog/create-post` + (options.id ? `?id=${options.id}` : '')
|
||||
|
||||
if (options.type === "bounty")
|
||||
return `/blog/post/bounty/${options.id}`
|
||||
+ (options.title ? `/${toSlug(options.title)}` : "");
|
||||
|
||||
Reference in New Issue
Block a user