|
|
@ -177,12 +177,26 @@ export default function BaseQuestionCard({
|
|
|
|
const cardContent = (
|
|
|
|
const cardContent = (
|
|
|
|
<>
|
|
|
|
<>
|
|
|
|
{showVoteButtons && (
|
|
|
|
{showVoteButtons && (
|
|
|
|
<VotingButtons
|
|
|
|
<>
|
|
|
|
upvoteCount={upvoteCount}
|
|
|
|
<div className="md:hidden">
|
|
|
|
vote={vote}
|
|
|
|
<VotingButtons
|
|
|
|
onDownvote={handleDownvote}
|
|
|
|
size="sm"
|
|
|
|
onUpvote={handleUpvote}
|
|
|
|
upvoteCount={upvoteCount}
|
|
|
|
/>
|
|
|
|
vote={vote}
|
|
|
|
|
|
|
|
onDownvote={handleDownvote}
|
|
|
|
|
|
|
|
onUpvote={handleUpvote}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="hidden md:block">
|
|
|
|
|
|
|
|
<VotingButtons
|
|
|
|
|
|
|
|
size="md"
|
|
|
|
|
|
|
|
upvoteCount={upvoteCount}
|
|
|
|
|
|
|
|
vote={vote}
|
|
|
|
|
|
|
|
onDownvote={handleDownvote}
|
|
|
|
|
|
|
|
onUpvote={handleUpvote}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
<div className="flex flex-1 flex-col items-start gap-2">
|
|
|
|
<div className="flex flex-1 flex-col items-start gap-2">
|
|
|
|
<div className="flex items-baseline justify-between self-stretch">
|
|
|
|
<div className="flex items-baseline justify-between self-stretch">
|
|
|
@ -230,22 +244,48 @@ export default function BaseQuestionCard({
|
|
|
|
showCreateEncounterButton) && (
|
|
|
|
showCreateEncounterButton) && (
|
|
|
|
<div className="flex gap-2">
|
|
|
|
<div className="flex gap-2">
|
|
|
|
{showAnswerStatistics && (
|
|
|
|
{showAnswerStatistics && (
|
|
|
|
<Button
|
|
|
|
<>
|
|
|
|
addonPosition="start"
|
|
|
|
<div className="sm:hidden">
|
|
|
|
icon={ChatBubbleBottomCenterTextIcon}
|
|
|
|
<Button
|
|
|
|
label={`${answerCount} answers`}
|
|
|
|
addonPosition="start"
|
|
|
|
size="sm"
|
|
|
|
icon={ChatBubbleBottomCenterTextIcon}
|
|
|
|
variant="tertiary"
|
|
|
|
label={`${answerCount}`}
|
|
|
|
/>
|
|
|
|
size="sm"
|
|
|
|
|
|
|
|
variant="tertiary"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="hidden sm:block">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
|
|
|
addonPosition="start"
|
|
|
|
|
|
|
|
icon={ChatBubbleBottomCenterTextIcon}
|
|
|
|
|
|
|
|
label={`${answerCount} answers`}
|
|
|
|
|
|
|
|
size="sm"
|
|
|
|
|
|
|
|
variant="tertiary"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
{showReceivedStatistics && (
|
|
|
|
{showReceivedStatistics && (
|
|
|
|
<Button
|
|
|
|
<>
|
|
|
|
addonPosition="start"
|
|
|
|
<div className="sm:hidden">
|
|
|
|
icon={EyeIcon}
|
|
|
|
<Button
|
|
|
|
label={`${receivedCount} received this`}
|
|
|
|
addonPosition="start"
|
|
|
|
size="sm"
|
|
|
|
icon={EyeIcon}
|
|
|
|
variant="tertiary"
|
|
|
|
label={`${receivedCount}`}
|
|
|
|
/>
|
|
|
|
size="sm"
|
|
|
|
|
|
|
|
variant="tertiary"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="hidden sm:block">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
|
|
|
addonPosition="start"
|
|
|
|
|
|
|
|
icon={EyeIcon}
|
|
|
|
|
|
|
|
label={`${receivedCount} received this`}
|
|
|
|
|
|
|
|
size="sm"
|
|
|
|
|
|
|
|
variant="tertiary"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
{showCreateEncounterButton && (
|
|
|
|
{showCreateEncounterButton && (
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
|