Debate: argument improvements
Andrei0872 opened this issue · comments
- preview argument
Idea: you could select a range of text and export the serialized version of it. That part should be saved in a separated column(e.g.contentPreview
) in theargument
table. - expand arg content with transition
- allow expanding multiple args at the same time
- show spinner while fetching the arg
{
(p.argumentId === crtReadArgumentId && !isReadArgumentLoading) || (p.argumentId !== crtReadArgumentId) ? (
<DebateArgumentCard
additionalActions={renderAdditionalActions(p)}
isExpanded={p.argumentId === crtReadArgumentId}
readArgument={onReadArgument}
debateArgumentData={p}
/>
) : <p>Loading...</p>
}
- setting
setCrtReadArgumentId(argId);
before fetching