From a6b459e95af60471c9b5649caeb69da585a68a3f Mon Sep 17 00:00:00 2001 From: louis Date: Mon, 4 Apr 2022 17:57:09 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20option=20to=20change=20prepen?= =?UTF-8?q?d=20time=20setting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Ticker.js | 9 ++++++++- src/components/TickerForm.js | 9 +++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/components/Ticker.js b/src/components/Ticker.js index 36dd4830..450d54b2 100644 --- a/src/components/Ticker.js +++ b/src/components/Ticker.js @@ -1,5 +1,5 @@ import React from 'react'; -import {Button, Card, Confirm, Icon, Label} from 'semantic-ui-react'; +import {Button, Card, Confirm, Divider, Icon, Label} from 'semantic-ui-react'; import {deleteTicker} from "../api/Ticker"; import PropTypes from 'prop-types'; import ReactMarkdown from "react-markdown"; @@ -108,6 +108,13 @@ export default class Ticker extends React.Component { + + + + Prepend Time + diff --git a/src/components/TickerForm.js b/src/components/TickerForm.js index 3aa9954b..b5eb276e 100644 --- a/src/components/TickerForm.js +++ b/src/components/TickerForm.js @@ -50,6 +50,8 @@ export default class TickerForm extends React.Component { this.props.ticker.location ); + console.log(formData); + this.updateTicker(formData); } @@ -172,6 +174,13 @@ export default class TickerForm extends React.Component { onChange={(event, input) => this.form.description = input.value} required /> + this.form.prepend_time = input.checked} + />
Information