time-convertor

Convert time across timezones
git clone http://git.hanabi.in/repos/time-convertor.git
Log | Files | Refs | README | LICENSE

commit 5e00e4788581f0eea7ec3d37bbbe4b6694cab1bc
parent 5da3f4896e0cd082ce8393abf979dc37a9c7c4c2
Author: Agastya Chandrakant <me@hanabi.in>
Date:   Mon, 18 May 2020 12:40:47 +0530

give more option to customise

Diffstat:
Msrc/comp/autoCompleteText.js | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/comp/autoCompleteText.js b/src/comp/autoCompleteText.js @@ -1,7 +1,7 @@ import React from 'react'; import moment from 'moment-timezone'; -function AutoCompleteText({ defaultValue = '', changeValue }) { +function AutoCompleteText({ changeValue, defaultValue = '', id, placeholder }) { const options = moment.tz .names() .sort() @@ -37,12 +37,12 @@ function AutoCompleteText({ defaultValue = '', changeValue }) { role="searchbox" autoFocus className="w-75" - id="converted-time-lbl-input" + id={id} name="converted-time-lbl-input" onChange={handleChange} type="text" - placeholder="Time Zone" - aria-placeholder="Time Zone" + placeholder={placeholder} + aria-placeholder={placeholder} value={inputVal} maxLength={100} />