mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-25 01:04:24 +01:00
Merge branch 'master' of https://github.com/peakshift/makers.bolt.fun
This commit is contained in:
@@ -182,7 +182,7 @@ export default function LoginPage() {
|
||||
color='gray'
|
||||
onClick={copyToClipboard}
|
||||
>{copied ? "Copied" : "Copy"} <FiCopy /></Button>
|
||||
<a href={`https://makers.bolt.fun/blog/post/story/99/sign-in-with-lightning`} target='_blank' rel="noreferrer"
|
||||
<a href={`https://makers.bolt.fun/story/sign-in-with-lightning--99`} target='_blank' rel="noreferrer"
|
||||
className='md:col-span-2 block text-body4 text-center text-gray-900 border border-gray-200 rounded-10 px-16 py-12 active:scale-90 transition-transform'
|
||||
>What is a lightning wallet?</a>
|
||||
</div>
|
||||
|
||||
@@ -8,6 +8,7 @@ import { NotificationsService } from "src/services/notifications.service";
|
||||
import { useAppDispatch } from "src/utils/hooks";
|
||||
import { useReduxEffect } from "src/utils/hooks/useReduxEffect";
|
||||
import { openModal } from "src/redux/features/modals.slice";
|
||||
import { createRoute } from "src/utils/routing";
|
||||
|
||||
|
||||
const CONFIRM_DELETE_STORY = createAction<{ confirmed?: boolean }>('DELETE_STORY_CONFIRMED')({})
|
||||
@@ -31,7 +32,7 @@ export const useUpdateStory = (story: Story) => {
|
||||
cover_image: story.cover_image ? { id: null, name: null, url: story.cover_image } : null,
|
||||
}))
|
||||
|
||||
navigate("/blog/create-post?type=story")
|
||||
navigate(createRoute({ type: "write-story" }))
|
||||
};
|
||||
|
||||
const onConfirmDelete = useCallback(({ payload: { confirmed } }: typeof CONFIRM_DELETE_STORY) => {
|
||||
|
||||
@@ -20,7 +20,7 @@ export default function MakersPage() {
|
||||
{query.loading ?
|
||||
<MakerCardSkeleton />
|
||||
:
|
||||
query.data?.me ?
|
||||
(query.data?.me && !!query.data.tournamentParticipationInfo) ?
|
||||
<MakerCard isMe maker={{ user: query.data.me as User, hacking_status: query.data.tournamentParticipationInfo?.hacking_status! }} />
|
||||
: null
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@ export default function LinkingAccountModal({ onClose, direction, tournamentId,
|
||||
color='gray'
|
||||
onClick={copyToClipboard}
|
||||
>{copied ? "Copied" : "Copy"} <FiCopy /></Button>
|
||||
<a href={`https://makers.bolt.fun/blog/post/story/99/sign-in-with-lightning`} target='_blank' rel="noreferrer"
|
||||
<a href={`https://makers.bolt.fun/story/sign-in-with-lightning--99`} target='_blank' rel="noreferrer"
|
||||
className='col-span-2 block text-body4 text-center text-gray-900 border border-gray-200 rounded-10 px-16 py-12 active:scale-90 transition-transform'
|
||||
>What is a lightning wallet?</a>
|
||||
</div>
|
||||
|
||||
@@ -14,6 +14,10 @@ type RouteOptions =
|
||||
title?: string,
|
||||
username?: string,
|
||||
}
|
||||
| {
|
||||
type: "write-story",
|
||||
id?: number,
|
||||
}
|
||||
| {
|
||||
type: "bounty",
|
||||
id: string | number,
|
||||
@@ -51,6 +55,10 @@ export function createRoute(options: RouteOptions) {
|
||||
+ (!onlyId ? "-" : "")
|
||||
+ `${options.id}`
|
||||
}
|
||||
|
||||
if (options.type === 'write-story')
|
||||
return "/story/write?type=story"
|
||||
|
||||
if ((options.type === "post" && options.postType.toLowerCase() === 'bounty')
|
||||
|| options.type === "bounty")
|
||||
return `/blog/post/bounty/${options.id}`
|
||||
|
||||
Reference in New Issue
Block a user