open moment formatting guide when clicking on the question mark in the time format table component
parent
dd9cb18587
commit
07f7824f0c
|
@ -51,8 +51,8 @@ class GraphOptionsTimeFormat extends PureComponent<Props, State> {
|
||||||
|
|
||||||
public render() {
|
public render() {
|
||||||
const {format, customFormat} = this.state
|
const {format, customFormat} = this.state
|
||||||
const tipContent =
|
const tipUrl = 'http://momentjs.com/docs/#/parsing/string-format/'
|
||||||
'For information on formatting, see http://momentjs.com/docs/#/parsing/string-format/'
|
const tipContent = `For information on formatting, see ${tipUrl}`
|
||||||
|
|
||||||
const formatOption = FORMAT_OPTIONS.find(op => op.text === format)
|
const formatOption = FORMAT_OPTIONS.find(op => op.text === format)
|
||||||
const showCustom = !formatOption || customFormat
|
const showCustom = !formatOption || customFormat
|
||||||
|
@ -62,10 +62,12 @@ class GraphOptionsTimeFormat extends PureComponent<Props, State> {
|
||||||
<label>
|
<label>
|
||||||
Time Format
|
Time Format
|
||||||
{showCustom && (
|
{showCustom && (
|
||||||
|
<a href={tipUrl} target="_blank">
|
||||||
<QuestionMarkTooltip
|
<QuestionMarkTooltip
|
||||||
tipID="Time Axis Format"
|
tipID="Time Axis Format"
|
||||||
tipContent={tipContent}
|
tipContent={tipContent}
|
||||||
/>
|
/>
|
||||||
|
</a>
|
||||||
)}
|
)}
|
||||||
</label>
|
</label>
|
||||||
<Dropdown
|
<Dropdown
|
||||||
|
|
Loading…
Reference in New Issue