@mooretodd/main
Advanced tools
Comparing version 0.0.18 to 0.1.0
24
Main.js
@@ -12,2 +12,3 @@ import React from 'react'; | ||
import Heading from '@mooretodd/heading'; | ||
import Loader from '@mooretodd/loader'; | ||
import styles from './styles.css'; | ||
@@ -21,3 +22,6 @@ | ||
getInitialState() { | ||
return {results: []} | ||
return { | ||
results: [], | ||
loading: true | ||
} | ||
}, | ||
@@ -34,3 +38,4 @@ | ||
this.setState({ | ||
results | ||
results, | ||
loading: false | ||
}); | ||
@@ -40,9 +45,16 @@ }, | ||
render() { | ||
const {results} = this.state; | ||
const {results, loading} = this.state; | ||
return ( | ||
<section> | ||
<Heading>Surveys</Heading> | ||
<ul className={styles.surveyContainer}> | ||
{results.map((result, i) => <Survey {...result} index={i} key={uuid.v4()}/>)} | ||
</ul> | ||
{loading ? <Loader /> : | ||
<div> | ||
<ul className={styles.surveyContainer}> | ||
{results.map((result, i) => | ||
<Survey {...result} index={i} key={uuid.v4()} | ||
/>)} | ||
</ul> | ||
<p className={styles.hello}>I had fun! Thank you.</p> | ||
</div> | ||
} | ||
</section>) | ||
@@ -49,0 +61,0 @@ } |
{ | ||
"name": "@mooretodd/main", | ||
"version": "0.0.18", | ||
"version": "0.1.0", | ||
"description": "", | ||
@@ -8,5 +8,6 @@ "main": "index.js", | ||
"@mooretodd/services": "^0.0.16", | ||
"@mooretodd/loader": "^0.0.19", | ||
"@mooretodd/survey_result_detail": "^0.0.15", | ||
"@mooretodd/utils": "^0.0.15", | ||
"@mooretodd/survey": "^0.0.18", | ||
"@mooretodd/survey": "^0.0.19", | ||
"@mooretodd/heading": "^0.0.15" | ||
@@ -13,0 +14,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
3107
7
74
1
5
6
+ Added@mooretodd/loader@^0.0.19
- Removed@mooretodd/survey@0.0.18(transitive)
Updated@mooretodd/survey@^0.0.19