Skip to content

Commit

Permalink
feat: add help tip
Browse files Browse the repository at this point in the history
  • Loading branch information
njzydark committed Feb 7, 2022
1 parent 4ea450e commit c4480b9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packages/web/src/pages/home/components/PS4HostFormModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ export const PS4HostFormModal = ({ data, visible, onCancel, onOk }: Props) => {
<FormItem label="Alias" field="alias">
<Input />
</FormItem>
<FormItem label="URL" field="url" rules={[{ required: true, message: 'Please input url' }]}>
<FormItem
label="URL"
field="url"
rules={[{ required: true, message: 'Please input url' }]}
extra="For example: http://192.168.0.2:12800, port required, usually 12800"
>
<Input />
</FormItem>
</Form>
Expand Down
7 changes: 6 additions & 1 deletion packages/web/src/pages/home/components/WebDavFormModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,12 @@ export const WebDavFormModal = ({ data, visible, onCancel, onOk }: Props) => {
</>
) : (
<>
<FormItem label="URL" field="url" rules={[{ required: true, message: 'Please input url' }]}>
<FormItem
label="URL"
field="url"
rules={[{ required: true, message: 'Please input url' }]}
extra="For example: http://example.com"
>
<Input />
</FormItem>
<FormItem label="Username" field="username">
Expand Down

0 comments on commit c4480b9

Please sign in to comment.