From e2daa36a11385505d070de69553c414e4a275b07 Mon Sep 17 00:00:00 2001
From: Camilo Vega <59750365+camilovegag@users.noreply.github.com>
Date: Thu, 4 Jul 2024 11:58:01 -0500
Subject: [PATCH 1/9] 655 support markdown at develop (#656)
* Replicate pr to support markdown at develop
* update pnpm action to v4
---------
Co-authored-by: Diego Alzate
---
.github/workflows/check-formatting.yml | 2 +-
.github/workflows/lint.yml | 2 +-
.../src/components/option-card/OptionCard.tsx | 13 ++++++++++++-
.../tables/results-table/ResultsTable.tsx | 13 ++++++++++++-
4 files changed, 26 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/check-formatting.yml b/.github/workflows/check-formatting.yml
index d4c8c816..09814185 100644
--- a/.github/workflows/check-formatting.yml
+++ b/.github/workflows/check-formatting.yml
@@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - uses: pnpm/action-setup@v2
+ - uses: pnpm/action-setup@v4
with:
version: 8
- name: Setup Node.js environment
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index cab3377c..30740e9f 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -20,7 +20,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- - uses: pnpm/action-setup@v2
+ - uses: pnpm/action-setup@v4
with:
version: 8
- name: Setup Node.js environment
diff --git a/packages/berlin/src/components/option-card/OptionCard.tsx b/packages/berlin/src/components/option-card/OptionCard.tsx
index 1072de63..53d10b7f 100644
--- a/packages/berlin/src/components/option-card/OptionCard.tsx
+++ b/packages/berlin/src/components/option-card/OptionCard.tsx
@@ -21,6 +21,8 @@ import { useNavigate, useParams } from 'react-router-dom';
import { useQuery } from '@tanstack/react-query';
import { useMemo, useState } from 'react';
import IconButton from '../icon-button';
+import Markdown from 'react-markdown';
+import Link from '../link';
type OptionCardProps = {
option: GetCycleResponse['forumQuestions'][number]['questionOptions'][number];
@@ -161,7 +163,16 @@ function OptionCard({
Funding request: {option.fundingRequest}
{option.optionSubTitle}Access code for {groupName} research groupNo secret
-
+
+
+