Skip to content

Commit

Permalink
Merge pull request #716 from dOrgTech/bug-703
Browse files Browse the repository at this point in the history
link to terms added
  • Loading branch information
Man-Jain authored Nov 16, 2023
2 parents ccc5c89 + 41b3092 commit 4b23298
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/modules/lite/explorer/components/DaoCardDetail.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Avatar, Button, Grid, styled, Typography, useMediaQuery, useTheme } from "@material-ui/core"
import { Avatar, Button, Grid, Link, styled, Typography, useMediaQuery, useTheme } from "@material-ui/core"
import { Community } from "models/Community"
import React, { useCallback, useContext, useEffect, useState } from "react"
import { useHistory } from "react-router"
Expand All @@ -20,6 +20,15 @@ const MembersText = styled(Typography)({
marginBottom: 10
})

const TermsText = styled(Link)(({ theme }) => ({
fontSize: 14,
textDecoration: "underline",
color: theme.palette.secondary.main,
cursor: "pointer",
fontFamily: "Roboto Mono",
letterSpacing: "1px !important"
}))

const CommunityText = styled(Typography)({
fontWeight: 500,
fontSize: 30,
Expand Down Expand Up @@ -95,6 +104,9 @@ export const DaoCardDetail: React.FC<DaoCardDetailProps> = ({ community, setIsUp
<MembersText variant={"body1"} color="textPrimary">
{count} members
</MembersText>
<TermsText href={community?.linkToTerms} target="_blank" color="secondary">
COMMUNITY TERMS
</TermsText>
</Grid>
</Grid>

Expand Down

0 comments on commit 4b23298

Please sign in to comment.