Skip to content

Commit

Permalink
Fix: 言語の指定を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
su-u committed Feb 2, 2024
1 parent c82c7c1 commit cc90759
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/app/Provider.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';
import { ConfigProvider, theme } from 'antd';
import locale from 'antd/locale/ja_JP';
import jaJP from 'antd/locale/ja_JP';
import React, { FC } from 'react';
import { CustomProvider } from 'rsuite';
import 'dayjs/locale/ja';
Expand All @@ -15,7 +15,7 @@ export const Provider: FC<Props> = ({ children }) => {
theme={{
algorithm: theme.darkAlgorithm,
}}
// locale={locale}
locale={jaJP}
>
<CustomProvider theme="dark">{children}</CustomProvider>
</ConfigProvider>
Expand Down
2 changes: 1 addition & 1 deletion src/app/date_diff/DateDiff.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const DateDiff: FC = () => {
</Panel>
<Panel bordered header={<PanelHeader title="共通設定" />}>
<Form fluid layout="horizontal">
<FormRow label="整数">
<FormRow label="少数">
<Controller
render={({ field: { ref, ...field } }) => <Switch {...field} />}
name="isFormatFloat"
Expand Down
9 changes: 4 additions & 5 deletions src/app/dummy_generator/DummyGenerator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ import { dataTypeOptions } from '@/app/dummy_generator/options';
import type { DataType } from '@/app/dummy_generator/options';
import { AddressOptions } from '@/app/dummy_generator/options/AddressOptions';
import { NameOptions } from '@/app/dummy_generator/options/NameOptions';
import { useDummy, RecordType, DummyForm } from '@/app/dummy_generator/useDummy';
import { useDummy, RecordType, DummyForm , COUNT_LIMIT, DEFAULT_VALUES } from '@/app/dummy_generator/useDummy';
import { FormRow } from '@/components/common/Form/FormRow';
import { InputNumber } from '@/components/common/Form/InputNumber';
import { Select } from '@/components/common/Form/Select';
import { TextArea } from '@/components/common/Form/TextArea';
import { PageTitle } from '@/components/common/PageTitle';
import { PanelHeader } from '@/components/common/PanelHeader';
import { InputNumber } from '@/components/common/Form/InputNumber';
import { COUNT_LIMIT, DEFAULT_VALUES } from '@/app/dummy_generator/useDummy';

export const DummyGenerator: FC = () => {
const title = 'ダミー情報の生成';
const width = 250;
const { methods, fields, output, onClickAdd, onClickClear, onClickDelete, onClickGenerate } = useDummy();
const { methods, fields, output, onClickAdd, onClickClear, onClickDelete, onClickGenerate } =
useDummy();
const { watch, control } = methods;

const source = fields.map((value, index) => {
Expand Down Expand Up @@ -81,7 +81,6 @@ export const DummyGenerator: FC = () => {
name="count"
control={control}
/>

</FormRow>
<Button type="primary" onClick={onClickGenerate}>
生成
Expand Down
7 changes: 2 additions & 5 deletions src/app/dummy_generator/fakcer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { DataType , nameType , nameDataType , addressType } from '@/app/dummy_generator/options';
import type { DataType, nameType, nameDataType, addressType } from '@/app/dummy_generator/options';

type Option = undefined | nameType | nameDataType | addressType;

Expand All @@ -9,12 +9,9 @@ export const facker = (dataType: DataType, option: Option) => {
}
default:
break;

}

return [];
};

const nameFacker = (option: nameType) => {

};
const nameFacker = (option: nameType) => {};
6 changes: 2 additions & 4 deletions src/app/dummy_generator/useDummy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useCallback } from 'react';
import { useCallback , useState } from 'react';
import { useFieldArray } from 'react-hook-form';
import { useCustomForm } from '@/components/common/Form/useCustomForm';
import { useState } from 'react';

export type DummyForm = {
count: number;
Expand All @@ -18,7 +17,7 @@ export const DEFAULT_VALUES: DummyForm = {
count: 1,
format: 'csv',
items: [],
}
};

export interface RecordType {
key: number;
Expand Down Expand Up @@ -57,7 +56,6 @@ export const useDummy = () => {
setOutput(JSON.stringify(values, null, ` `));
}, [getValues]);


return {
methods,
fields,
Expand Down

0 comments on commit cc90759

Please sign in to comment.