diff --git a/client/src/App.css b/client/src/App.css index 675be18..6de3091 100644 --- a/client/src/App.css +++ b/client/src/App.css @@ -25,14 +25,14 @@ cursor: pointer; } -.ArgumentPreview .scheme-name { +.scheme-name { border-bottom: 1px solid #ccc; padding: 0.25em 0.5em; font-weight: bold; background-color: #eee; } -.ArgumentPreview .value-name { +.value-name { padding: 0.5em; } @@ -41,13 +41,6 @@ border: 1px solid #ccc; } -.ArgumentDetails .scheme-name { - border-bottom: 1px solid #ccc; - padding: 0.25em 0.5em; - font-weight: bold; - background-color: #eee; -} - -.ArgumentDetails .value-name { - padding: 0.5em; +.cq-button { + margin-left: 0.5em } diff --git a/client/src/components/Argument.js b/client/src/components/Argument.js index 305b867..9e4a1d8 100644 --- a/client/src/components/Argument.js +++ b/client/src/components/Argument.js @@ -4,7 +4,6 @@ import axios from 'axios' import ActionDetailScheme from './argumentDetailSchemes/ActionDetailScheme' import ExpertDetailScheme from './argumentDetailSchemes/ExpertDetailScheme' import PopularDetailScheme from './argumentDetailSchemes/PopularDetailScheme' -import CriticalQuestion from './CriticalQuestion' class Argument extends React.Component { state = { @@ -44,7 +43,7 @@ class Argument extends React.Component { return (
- {argumentNotRoot ? `${isArgumentPositive} : ` : null }{schemeName} + {argumentNotRoot ? `${isArgumentPositive} : ` : null }{schemeName}
{argumentNotRoot ? @@ -55,17 +54,10 @@ class Argument extends React.Component { ) : null} {{ - action: , - expert: , - popular: + action: , + expert: , + popular: }[this.state.argument.scheme]} -
-

Critical Questions

-
    -
  • -
  • -
  • -
); diff --git a/client/src/components/CriticalQuestion.js b/client/src/components/CriticalQuestion.js index 27e3ee8..9bf0b14 100644 --- a/client/src/components/CriticalQuestion.js +++ b/client/src/components/CriticalQuestion.js @@ -27,8 +27,8 @@ class CriticalQuestion extends React.Component {

{this.props.question}

- - + +
) diff --git a/client/src/components/argumentDetailSchemes/ActionDetailScheme.js b/client/src/components/argumentDetailSchemes/ActionDetailScheme.js index 8690c70..11a8cd1 100644 --- a/client/src/components/argumentDetailSchemes/ActionDetailScheme.js +++ b/client/src/components/argumentDetailSchemes/ActionDetailScheme.js @@ -1,13 +1,29 @@ import React from 'react' +import CriticalQuestion from '../CriticalQuestion' + const ActionDetailScheme = (props) => { return ( -
-
In current circumstance R: {props.circumstance}
-
We should perform action A: {props.action}
-
Which will result in a new circumstance S: {props.newCircumstance}
-
Which will achieve goal G: {props.goal}
-
That will promote value V: {props.value}
+
+
+
In current circumstance R: {props.circumstance}
+
We should perform action A: {props.action}
+
Which will result in a new circumstance S: {props.newCircumstance}
+
Which will achieve goal G: {props.goal}
+
That will promote value V: {props.value}
+
+ {props.showCriticalQuestions ? +
+
+

Critical Questions

+
    +
  • +
  • +
  • +
+
+ : null + }
) } diff --git a/client/src/components/argumentDetailSchemes/ExpertDetailScheme.js b/client/src/components/argumentDetailSchemes/ExpertDetailScheme.js index d6247c8..93fbe21 100644 --- a/client/src/components/argumentDetailSchemes/ExpertDetailScheme.js +++ b/client/src/components/argumentDetailSchemes/ExpertDetailScheme.js @@ -1,11 +1,27 @@ import React from 'react' +import CriticalQuestion from '../CriticalQuestion' + const ExpertDetailScheme = (props) => { return ( -
-
There is a source E: {props.source}
-
Who is an expert in subject domain D: {props.domain}
-
The source makes the assestion A that: {props.assertion}
+
+
+
There is a source E: {props.source}
+
Who is an expert in subject domain D: {props.domain}
+
The source makes the assestion A that: {props.assertion}
+
+ {props.showCriticalQuestions ? +
+
+

Critical Questions

+
    +
  • +
  • +
  • +
+
+ : null + }
) } diff --git a/client/src/components/argumentDetailSchemes/PopularDetailScheme.js b/client/src/components/argumentDetailSchemes/PopularDetailScheme.js index 02b419e..c744fb1 100644 --- a/client/src/components/argumentDetailSchemes/PopularDetailScheme.js +++ b/client/src/components/argumentDetailSchemes/PopularDetailScheme.js @@ -1,9 +1,24 @@ import React from 'react' +import CriticalQuestion from '../CriticalQuestion' + const PopularDetailScheme = (props) => { return ( -
-
Proposition A is generally accepted as being true, that gives a reason in favour of A: {props.proposition}
+
+
+
Proposition A is generally accepted as being true, that gives a reason in favour of A: {props.proposition}
+
+ {props.showCriticalQuestions ? +
+
+

Critical Questions

+
    +
  • +
  • +
+
+ : null + }
) }