Remove old check in free answer comment rendering (#906)

This commit is contained in:
Marshall Polaris 2022-09-20 14:11:26 -07:00 committed by GitHub
parent 30ce80d0c9
commit faaf502114
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,6 @@ export function FeedAnswerCommentGroup(props: {
const answerElementId = `answer-${answer.id}`
const commentsByCurrentUser = (user && commentsByUserId[user.id]) ?? []
const isFreeResponseContractPage = !!commentsByCurrentUser
const scrollAndOpenReplyInput = useEvent(
(comment?: ContractComment, answer?: Answer) => {
@ -95,8 +94,6 @@ export function FeedAnswerCommentGroup(props: {
<span className="whitespace-pre-line text-lg">
<Linkify text={text} />
</span>
{isFreeResponseContractPage && (
<div className="sm:hidden">
<button
className="text-xs font-bold text-gray-500 hover:underline"
@ -105,9 +102,7 @@ export function FeedAnswerCommentGroup(props: {
Reply
</button>
</div>
)}
</Col>
{isFreeResponseContractPage && (
<div className="justify-initial hidden sm:block">
<button
className="text-xs font-bold text-gray-500 hover:underline"
@ -116,7 +111,6 @@ export function FeedAnswerCommentGroup(props: {
Reply
</button>
</div>
)}
</Col>
</Row>
<Col className="gap-3 pl-1">