Skip to content

Commit 727b627

Browse files
committed
Improve title style of FromInput
1 parent 569b3c7 commit 727b627

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/components/FormInput.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { PureComponent } from 'react'
22
import PropTypes from 'prop-types'
33

44
const styles = {
5+
title: { textAlign: 'center' },
56
form: {
67
display: 'flex',
78
flexDirection: 'row',
@@ -53,7 +54,7 @@ export default class FormInput extends PureComponent {
5354
const val = typeof value !== 'undefined' ? value : inputProps.value
5455
return (
5556
<div>
56-
<div>{title}</div>
57+
<div style={styles.title}>{title}</div>
5758
<div style={styles.form}>
5859
<input
5960
onKeyDown={(e) => {

0 commit comments

Comments
 (0)