Skip to content

Commit

Permalink
successfully added executable code snippets in question page.
Browse files Browse the repository at this point in the history
  • Loading branch information
NazireAta committed Dec 7, 2024
1 parent 7d88548 commit 50990a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ services:
platform: linux/amd64
volumes:
- ./backend:/app
ports:
- "8080:8080"
environment:
DB_HOST: db
DB_NAME: cuisines-test
Expand Down
5 changes: 2 additions & 3 deletions frontend/src/routes/question.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { convertTagToTrack, useExercismSearch } from "@/services/exercism";
import { Flag, MessageSquare, ThumbsDown, ThumbsUp, Trash } from "lucide-react";
import { useState } from "react";
import { Link, useParams } from "react-router-dom";
import { ContentWithSnippets } from "@/components/ContentWithSnippets";

export default function QuestionPage() {
const { questionId } = useParams();
Expand Down Expand Up @@ -218,9 +219,7 @@ export default function QuestionPage() {
</div>

{/* Question Content */}
<div className="mb-6 rounded-lg bg-neutral-150 p-4">
<span className="whitespace-pre-wrap">{question.content}</span>
</div>
<ContentWithSnippets content={question.content} />

{/* Answers Section */}
<h1 className="mb-4 text-2xl font-bold">Answers</h1>
Expand Down

0 comments on commit 50990a8

Please sign in to comment.