mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 14:14:17 +00:00
refactor: show delayed times
This commit is contained in:
committed by
Carlos Valente
parent
bdd2a62cee
commit
7f39d035fd
+3
-2
@@ -7,12 +7,13 @@ import style from './TextLikeInput.module.scss';
|
||||
export default memo(TextLikeInput);
|
||||
|
||||
interface TextLikeInputProps extends HTMLAttributes<HTMLSpanElement> {
|
||||
delayed?: boolean;
|
||||
muted?: boolean;
|
||||
}
|
||||
|
||||
function TextLikeInput(props: PropsWithChildren<TextLikeInputProps>) {
|
||||
const { muted, children, className, ...elementProps } = props;
|
||||
const classes = cx([style.textInput, muted && style.muted, className]);
|
||||
const { delayed, muted, children, className, ...elementProps } = props;
|
||||
const classes = cx([style.textInput, delayed && style.delayed, muted && style.muted, className]);
|
||||
return (
|
||||
<div className={classes} {...elementProps} tabIndex={0}>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user