feat: added "Project Listed" modal

This commit is contained in:
MTG2000
2022-08-16 13:22:48 +03:00
parent 86acaa5ee5
commit 2e88178cc4
9 changed files with 168 additions and 3 deletions

View File

@@ -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)}` : "");