Skip to content

Commit

Permalink
fix(more): project information stack add
Browse files Browse the repository at this point in the history
  • Loading branch information
NSUWAL123 committed Dec 16, 2024
1 parent fbdfcab commit 6433fee
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/mapper/src/lib/components/more/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@
import Editor from '$lib/components/editor/editor.svelte';
import Comment from '$lib/components/more/comment.svelte';
import Activities from '$lib/components/more/activities.svelte';
import ProjectInfo from '$lib/components/more/project-info.svelte';
import { getTaskStore } from '$store/tasks.svelte.ts';
import type { ProjectData, TaskEventType } from '$lib/types';
type stackType = '' | 'Comment' | 'Instructions' | 'Activities';
type stackType = '' | 'Comment' | 'Instructions' | 'Activities' | 'Project Information';
const stackGroup: { icon: string; title: stackType }[] = [
{
icon: 'info-circle',
title: 'Project Information',
},
{
icon: 'chat',
title: 'Comment',
Expand Down Expand Up @@ -88,11 +94,11 @@
<p class="text-[1.125rem] font-barlow-semibold">{activeStack}</p>
</div>
{/if}

<!-- body -->
{#if activeStack === 'Comment'}
<Comment {comments} projectId={projectData?.id} />
{/if}

{#if activeStack === 'Instructions'}
{#if projectData?.per_task_instructions}
<Editor editable={false} content={projectData?.per_task_instructions} />
Expand All @@ -105,4 +111,5 @@
{#if activeStack === 'Activities'}
<Activities {taskEvents} {zoomToTask} />
{/if}
{#if activeStack === 'Project Information'}<ProjectInfo {projectData} />{/if}
</div>

0 comments on commit 6433fee

Please sign in to comment.