mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-31 20:09:11 +00:00
style: notes
This commit is contained in:
@@ -3,7 +3,7 @@ import { useEffect, useState } from 'react';
|
|||||||
import style from './EditableText.module.css';
|
import style from './EditableText.module.css';
|
||||||
|
|
||||||
export default function EditableText(props) {
|
export default function EditableText(props) {
|
||||||
const { label, defaultValue, placeholder, submitHandler } = props;
|
const { label, defaultValue, placeholder, submitHandler, ...rest } = props;
|
||||||
const [text, setText] = useState(defaultValue || '');
|
const [text, setText] = useState(defaultValue || '');
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -22,7 +22,7 @@ export default function EditableText(props) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={style.block}>
|
<div className={style.block} {...rest}>
|
||||||
<span className={style.title}>{label}</span>
|
<span className={style.title}>{label}</span>
|
||||||
<Editable
|
<Editable
|
||||||
onChange={(v) => handleChange(v)}
|
onChange={(v) => handleChange(v)}
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ const ExpandedBlock = (props) => {
|
|||||||
label='Note'
|
label='Note'
|
||||||
defaultValue={data.note}
|
defaultValue={data.note}
|
||||||
placeholder='Add Note'
|
placeholder='Add Note'
|
||||||
|
style={{ color: '#d69e2e' }}
|
||||||
submitHandler={(v) =>
|
submitHandler={(v) =>
|
||||||
actionHandler('update', { field: 'note', value: v })
|
actionHandler('update', { field: 'note', value: v })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ export default function Info() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className={style.main}>{selected}</div>
|
<div className={style.main}>{selected}</div>
|
||||||
<InfoLogger logData={logData} />
|
{/* <InfoLogger logData={logData} /> */}
|
||||||
<InfoNif />
|
<InfoNif />
|
||||||
<InfoTitle title={'Now'} data={titlesNow} />
|
<InfoTitle title={'Now'} data={titlesNow} />
|
||||||
<InfoTitle title={'Next'} data={titlesNext} />
|
<InfoTitle title={'Next'} data={titlesNext} />
|
||||||
|
|||||||
@@ -30,6 +30,10 @@
|
|||||||
color: #ccc;
|
color: #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.notes {
|
||||||
|
color: #d69e2e;
|
||||||
|
}
|
||||||
|
|
||||||
.if {
|
.if {
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
color: #4bffabcc;
|
color: #4bffabcc;
|
||||||
|
|||||||
@@ -32,8 +32,8 @@ export default function InfoTitle(props) {
|
|||||||
<span className={style.label}>Subtitle: </span>
|
<span className={style.label}>Subtitle: </span>
|
||||||
{data.subtitle}
|
{data.subtitle}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div className={style.notes}>
|
||||||
<span className={style.label}>Notes: </span>
|
<span className={style.label}>Note: </span>
|
||||||
{data.note}
|
{data.note}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user