Andrei0872 / decentdebates

A place where all sorts of topics are debated in a respectful and constructive manner.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 the argument 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