From 6603b409b2a712a48c3611782de560f442f8b241 Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Sun, 19 Aug 2018 02:18:59 -0400 Subject: Created basic way to pass through dates unto test elements. --- src/components/competition-element.js | 2 +- src/components/mao-competitions.js | 39 +++++++++++++++++++++++++++++++---- src/components/test-element.js | 12 ++++++++++- 3 files changed, 47 insertions(+), 6 deletions(-) (limited to 'src/components') diff --git a/src/components/competition-element.js b/src/components/competition-element.js index dddd441..67cc668 100644 --- a/src/components/competition-element.js +++ b/src/components/competition-element.js @@ -23,7 +23,7 @@ class CompetitionElement extends LitElement {
@@ -149,6 +160,7 @@ class MaoCompetitions extends connect(store)(PageViewElement) {

Nationals

+

This competition includes schools from many different states. filler filler filler filler filler filler filler filler filler

@@ -185,6 +197,7 @@ class MaoCompetitions extends connect(store)(PageViewElement) {

States

+

This competition includes schools from many different regions in Florida. filler filler filler filler filler filler filler filler filler

@@ -309,6 +322,8 @@ class MaoCompetitions extends connect(store)(PageViewElement) { it is a 25 multiple-choice question, 40 minute test for middle schoolers designed to promote the development and enhancement of problem solving skills." + dates = ${["February 7th", "February 13th"]} + signedIn="${props.signedIn}" isRegistered="${props.registeredComps.includes('amc')}" on-register-comp="${() => store.dispatch(registerComp('amc'))}"> @@ -326,16 +341,30 @@ class MaoCompetitions extends connect(store)(PageViewElement) { information = "The Florida Math Leauge is a state-wide exam. It has three parts, each being 30 minutes long." + dates = ${["October 16th", "November 13th", "December 11th", "January 8th", "February 12th", "March 19th"]} signedIn="${props.signedIn}" isRegistered="${props.registeredComps.includes('fml')}" on-register-comp="${() => store.dispatch(registerComp('fml'))}"> + +
`; } - static get properties() { return { // This is the data from the store. registeredComps : Array, @@ -345,6 +374,8 @@ class MaoCompetitions extends connect(store)(PageViewElement) { statesRegistered : Boolean }} + + _stateChanged(state) { this.signedIn = state.firebaseAuth .signedIn; this.registeredComps = state.firebaseFirestore .registeredComps; diff --git a/src/components/test-element.js b/src/components/test-element.js index e2ccdf9..bbe1499 100644 --- a/src/components/test-element.js +++ b/src/components/test-element.js @@ -34,6 +34,14 @@ class TestElement extends LitElement { elevation = "0">

${props.information}

+
    + + + + + + +