-
-
-
- {segment}
-
-
-
+
diff --git a/src/components/RsvpWidget.js b/src/components/RsvpWidget.js
new file mode 100644
index 0000000..553a03e
--- /dev/null
+++ b/src/components/RsvpWidget.js
@@ -0,0 +1,25 @@
+import React from 'react'
+import { Progress } from './Progress'
+import { RsvpOffset } from './Offset'
+import { Indicator } from './Indicator'
+import { RsvpSegment } from './Segment'
+import { SegmentControl } from './SegmentControl'
+import { PlayerControl } from './PlayerControl'
+
+export const RsvpWidget = () => {
+ return (
+ <>
+
+
+
+
+
+
+
+ >
+ )
+}
diff --git a/src/components/Segment.js b/src/components/Segment.js
index ee2a7f5..fb4abde 100644
--- a/src/components/Segment.js
+++ b/src/components/Segment.js
@@ -3,6 +3,8 @@ import PropTypes from 'prop-types'
import styles from './Segment.css'
import { pivotize } from '../lib/pivotize'
+import { selectCurrentSegment } from 'store/selectors'
+import { useSelector } from 'store'
export const Segment = ({ children = '' }) => {
const [prefix, pivot, suffix] = pivotize(children)
@@ -18,3 +20,8 @@ export const Segment = ({ children = '' }) => {
Segment.propTypes = {
children: PropTypes.string.isRequired
}
+
+export const RsvpSegment = () => {
+ const segment = useSelector(selectCurrentSegment)
+ return
{segment}
+}
diff --git a/src/components/TextInput.css b/src/components/TextInput.css
index 54f6a94..b1ff7e7 100644
--- a/src/components/TextInput.css
+++ b/src/components/TextInput.css
@@ -1,7 +1,8 @@
.area {
box-sizing: border-box;
width: 100%;
- height: 300px;
+ height: 100px;
+ resize: vertical;
}
.load {
diff --git a/src/components/TotalTime.js b/src/components/TotalTime.js
index d65ec56..0a9a0e7 100644
--- a/src/components/TotalTime.js
+++ b/src/components/TotalTime.js
@@ -12,10 +12,5 @@ function formatTime(totalSeconds) {
export const TotalTime = () => {
const millis = useSelector(selectTotalTime)
- return (
-
-
Time needed
- Time needed for Text: {formatTime(millis / 1000)}
-
- )
+ return
Time needed for Text: {formatTime(millis / 1000)}
}
diff --git a/src/store/index.js b/src/store/index.js
index c046044..6b01558 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -36,7 +36,7 @@ const thunks = {
decWord: () => {},
incSentence: () => {},
decSentence: () => {},
- setMaxLength: length => ({ length }),
+ setMaxLength: maxLength => ({ maxLength }),
setWpm: wpm => ({ wpm }),
setOffset: offset => ({ offset }),
start: () => {},
@@ -72,7 +72,7 @@ const store = createStore({
reducer,
thunks,
initialState,
- logging: true,
+ logging: false,
warnOnUndefinedSelect: true
})
export const Provider = store.Provider
diff --git a/src/styles/Flex.js b/src/styles/Flex.js
index c428d15..f2cf4fd 100644
--- a/src/styles/Flex.js
+++ b/src/styles/Flex.js
@@ -10,6 +10,10 @@ export const Flex = ({ children, ...rest }) => {
)
}
-export const FlexMain = ({ children }) => {
- return
{children}
+export const FlexMain = ({ children, ...rest }) => {
+ return (
+
+ {children}
+
+ )
}