pull/6513/head
Arik Chakma 3 months ago
parent 323e553d2a
commit cc1b2acd45
  1. 7
      src/components/Projects/ListProjectSolutions.tsx
  2. 1
      src/pages/projects/[projectId]/index.astro
  3. 1
      src/pages/projects/[projectId]/solutions.astro

@ -10,6 +10,8 @@ import { deleteUrlParam, getUrlParams, setUrlParams } from '../../lib/browser';
import { pageProgressMessage } from '../../stores/page';
import { cn } from '../../lib/classname';
import { LeavingRoadmapWarningModal } from './LeavingRoadmapWarningModal';
import { isLoggedIn } from '../../lib/jwt';
import { showLoginPopup } from '../../lib/popup';
export interface ProjectStatusDocument {
_id?: string;
@ -99,6 +101,11 @@ export function ListProjectSolutions(props: ListProjectSolutionsProps) {
solutionId: string,
voteType: AllowedVoteType,
) => {
if (!isLoggedIn()) {
showLoginPopup();
return;
}
pageProgressMessage.set('Submitting vote...');
const { response, error } = await httpPost(
`${import.meta.env.PUBLIC_API_URL}/v1-vote-project/${solutionId}`,

@ -44,7 +44,6 @@ const githubUrl = `https://github.com/kamranahmedse/developer-roadmap/tree/maste
keywords={projectData.seo.keywords}
jsonLd={jsonLdSchema}
resourceId={projectId}
resourceType='project'
>
<div class='bg-gray-50'>
<div class='container'>

@ -45,7 +45,6 @@ const githubUrl = `https://github.com/kamranahmedse/developer-roadmap/tree/maste
keywords={projectData.seo.keywords}
jsonLd={jsonLdSchema}
resourceId={projectId}
resourceType='project'
>
<div class='bg-gray-50'>
<div class='container'>

Loading…
Cancel
Save