Skip to content

Commit

Permalink
chore: adjust annotation data modal input
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelpashkovsky committed Oct 13, 2022
1 parent d592291 commit 0df0419
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Expand Up @@ -38,6 +38,7 @@ const AnnotationMark = ({ type, color, value }: IAnnotationMarkProps) => {
return (
<>
<div
data-testid="annotation_mark_wrapper"
onClick={onClick}
style={{ background: color.hex() }}
className={styles.wrapper}
Expand Down
Expand Up @@ -76,12 +76,14 @@ function AddAnnotation(props: AddAnnotationProps) {
label="Description"
variant="light"
errorMessage={errors.content?.message}
data-testid="annotation_content_input"
/>
<TextField
{...register('timestamp')}
label="Time"
type="text"
readOnly
data-testid="annotation_timestamp_input"
/>
</form>
</PopoverBody>
Expand Down
Expand Up @@ -43,15 +43,16 @@ const AnnotationInfo = ({
<TextField
{...register('content')}
label="Description"
variant="light"
errorMessage={errors.content?.message}
readOnly
data-testid="annotation_content_input"
/>
<TextField
{...register('timestamp')}
label="Time"
type="text"
readOnly
data-testid="annotation_timestamp_input"
/>
</form>
</PopoverBody>
Expand Down

0 comments on commit 0df0419

Please sign in to comment.