From 870cdb5048361f2b7a07aaa9dbfb520be8d67833 Mon Sep 17 00:00:00 2001 From: cv <34649812+cpvalente@users.noreply.github.com> Date: Fri, 26 Mar 2021 20:47:56 +0100 Subject: [PATCH] cleanup + lint --- src/app/sampleData.js | 26 ++++++++++++++++++----- src/common/input/SingleTimeInput.jsx | 3 ++- src/features/editors/Editor.jsx | 12 ----------- src/features/viewers/DefaultPresenter.jsx | 3 +-- src/features/viewers/PreviewContainer.jsx | 12 ++++++----- 5 files changed, 31 insertions(+), 25 deletions(-) diff --git a/src/app/sampleData.js b/src/app/sampleData.js index 6aaeeaba5..b93a6caa1 100644 --- a/src/app/sampleData.js +++ b/src/app/sampleData.js @@ -1,31 +1,47 @@ const dummy = new Date(); export const sampleData = { - message: { - text: 'Hurry Up!', - color: '#F00', + presenterMessage: { + text: 'Only the presenter sees this', + active: false, + }, + publicMessage: { + text: 'Everyone sees this', active: false, }, events: [ { id: '1', + order: 1, title: 'Is the internet a fad?', subtitle: 'It is', presenter: 'Carlos Valente', timeStart: new Date('March 24, 2021 03:25:00'), timeEnd: new Date('March 24, 2021 04:24:00'), clockStarted: dummy, - timerDuration: 10, + timerDuration: 60, }, { id: '2', + order: 2, title: 'Is reddit a dictatorship?', subtitle: 'It is', presenter: 'Carlos Valente', timeStart: new Date('March 24, 2021 04:25:00'), timeEnd: new Date('March 24, 2021 05:24:00'), clockStarted: dummy, - timerDuration: 10, + timerDuration: 60, + }, + { + id: '3', + order: 3, + title: 'Out of words', + subtitle: '', + presenter: 'Carlos Valente', + timeStart: new Date('March 24, 2021 05:25:00'), + timeEnd: new Date('March 24, 2021 05:55:00'), + clockStarted: dummy, + timerDuration: 60, }, ], }; diff --git a/src/common/input/SingleTimeInput.jsx b/src/common/input/SingleTimeInput.jsx index 014895eae..2f0b21870 100644 --- a/src/common/input/SingleTimeInput.jsx +++ b/src/common/input/SingleTimeInput.jsx @@ -1,3 +1,4 @@ +import { FormLabel } from '@chakra-ui/form-control'; import { Text } from '@chakra-ui/layout'; import { NumberDecrementStepper, @@ -11,7 +12,7 @@ import styles from './TimeInput.module.css'; export default function SingleTimeInput(props) { return (