Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mooretodd/main

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mooretodd/main - npm Package Compare versions

Comparing version 0.0.18 to 0.1.0

npm-debug.log.3452784670

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc