summaryrefslogtreecommitdiff
path: root/frontend/app/views/tile/forms/tile.form.element.link.js
blob: 37dacd6d780fba706faae8489249811be8d98d11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import React from 'react'

import { NumberInput } from 'app/common'

export default function TileLinkForm({ tile, errorFields, parent }) {
  return (
    <div>
      <div className='row pair'>
        <NumberInput
          title="Width"
          name="width"
          data={tile.settings}
          min={0}
          max={2400}
          error={errorFields.has('width')}
          onChange={parent.handleSettingsChange}
          autoComplete="off"
        />
        <NumberInput
          title="Height"
          name="height"
          data={tile.settings}
          min={0}
          max={2400}
          error={errorFields.has('height')}
          onChange={parent.handleSettingsChange}
          autoComplete="off"
        />
      </div>
    </div>
  )
}