Skip to content

Commit 6c9b8e1

Browse files
committed
ヘルプへのリンクを追加
1 parent 0d7cb8a commit 6c9b8e1

4 files changed

Lines changed: 30 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"release-patch": "yarn version --patch"
1515
},
1616
"dependencies": {
17+
"@ant-design/icons": "^5.5.1",
1718
"@codemirror/lang-json": "^6.0.1",
1819
"@emotion/react": "^11.13.3",
1920
"@emotion/styled": "^11.13.0",

src/app/datetime_converter/DateConverter.tsx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import React, { FC } from 'react';
33
import { Controller } from 'react-hook-form';
44
import { Col, Grid, Panel, PanelGroup, Row, Form } from 'rsuite';
5+
import { QuestionCircleOutlined } from '@ant-design/icons';
56
import { AppLayout } from '@/Layout/App';
67
import { useDateConverter } from '@/app/datetime_converter/useDateConverter';
78
import { DatePicker } from '@/components/common/Form/DatePicker';
@@ -77,7 +78,21 @@ export const DateTimeConverter: FC = () => {
7778
control={control}
7879
/>
7980
</FormRow>
80-
<FormRow label="カスタム出力">
81+
<FormRow
82+
label={
83+
<>
84+
カスタム出力
85+
<a
86+
href="https://day.js.org/docs/en/display/format"
87+
target="_blank"
88+
rel="noopener noreferrer"
89+
style={{ marginLeft: '4px' }}
90+
>
91+
<QuestionCircleOutlined />
92+
</a>
93+
</>
94+
}
95+
>
8196
<Controller
8297
render={() => (
8398
<Input style={{ width }} noResize="none" onChange={onChangeCustomFormat} />

src/components/common/Form/FormRow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { Form, Grid, Row, Col } from 'rsuite';
33
import { FormLabel } from '@/components/common/Form/FormLabel';
44

55
type Props = {
6-
label: string;
7-
children: React.ReactNode;
6+
label: React.ReactNode;
7+
children?: React.ReactNode;
88
};
99

1010
export const FormRow: FC<Props> = ({ label, children, ...rest }) => {

yarn.lock

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@
6767
classnames "^2.2.6"
6868
rc-util "^5.31.1"
6969

70+
"@ant-design/icons@^5.5.1":
71+
version "5.5.1"
72+
resolved "https://registry.yarnpkg.com/@ant-design/icons/-/icons-5.5.1.tgz#4ff57b2a0d3bafae3d990c2781fd857ead36c935"
73+
integrity sha512-0UrM02MA2iDIgvLatWrj6YTCYe0F/cwXvVE0E2SqGrL7PZireQwgEKTKBisWpZyal5eXZLvuM98kju6YtYne8w==
74+
dependencies:
75+
"@ant-design/colors" "^7.0.0"
76+
"@ant-design/icons-svg" "^4.4.0"
77+
"@babel/runtime" "^7.24.8"
78+
classnames "^2.2.6"
79+
rc-util "^5.31.1"
80+
7081
"@ant-design/react-slick@~1.1.2":
7182
version "1.1.2"
7283
resolved "https://registry.yarnpkg.com/@ant-design/react-slick/-/react-slick-1.1.2.tgz#f84ce3e4d0dc941f02b16f1d1d6d7a371ffbb4f1"

0 commit comments

Comments
 (0)