Skip to content

Commit

Permalink
update md link colors
Browse files Browse the repository at this point in the history
  • Loading branch information
dekanbro committed Jun 13, 2024
1 parent d6ba46e commit 40015f2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/components/customFields/MarkDownField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ const MarkDownContainer = styled.div`
background-color: hsl(228, 43.3%, 17.5%);
font-size: 1.5rem;
font-family: inherit;
`;

const DialogMarkDownContainer = styled.div`
Expand Down Expand Up @@ -140,7 +142,9 @@ export const MarkdownField = (props: Buildable<Field>) => {
<Label>Preview</Label>
</LabelContainer>
<DialogMarkDownContainer>
<ReactMarkdown>{value}</ReactMarkdown>
<ReactMarkdown components={{
a: ({ node, ...props }) => <a style={{ color: '#00dd65' }} {...props} />
}}>{value}</ReactMarkdown>
</DialogMarkDownContainer>
</>
)}
Expand Down
4 changes: 3 additions & 1 deletion src/pages/ArticleDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ export const ArticleDetails = ({
)}

<ReactMarkdownWrapper>
<ReactMarkdown>{parsedContent?.content}</ReactMarkdown>
<ReactMarkdown components={{
a: ({ node, ...props }) => <a style={{ color: '#00dd65' }} {...props} />
}}>{parsedContent?.content}</ReactMarkdown>
</ReactMarkdownWrapper>
{shamanAddress && hash && <CollectedBy hash={hash} />}
<ArticleLinks>
Expand Down
4 changes: 3 additions & 1 deletion src/pages/Comments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ export const Comments = ({
) : (
<AuthorAvatar address={ZERO_ADDRESS} />
)}
<ReactMarkdown>{parsedComment.content}</ReactMarkdown>
<ReactMarkdown components={{
a: ({ node, ...props }) => <a style={{ color: '#00dd65' }} {...props} />
}}>{parsedComment.content}</ReactMarkdown>
<ArticleLinks>
<StyledLink
to={`/molochv3/${daoChain}/${daoId}/${tableRoute}/${parsedComment.parentId}`}
Expand Down
4 changes: 3 additions & 1 deletion src/pages/Dao.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ export function Dao() {
title={dao?.name}
>
<ReactMarkdown>{dao?.description}</ReactMarkdown>
<ReactMarkdown>{dao?.longDescription}</ReactMarkdown>
<ReactMarkdown components={{
a: ({ node, ...props }) => <a style={{ color: '#00dd65' }} {...props} />
}}>{dao?.longDescription}</ReactMarkdown>

</Card>)}

Expand Down

0 comments on commit 40015f2

Please sign in to comment.