Skip to content

Commit

Permalink
Set edit form font size to large
Browse files Browse the repository at this point in the history
 (#92)
  • Loading branch information
kimurash committed Nov 4, 2024
1 parent 6787722 commit 75a6253
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { UseFormReturnType } from '@mantine/form';
import { TagsInput } from '@mantine/core';
import { UseFormReturnType } from '@mantine/form';
import { CustomUpdateBookBody } from '~/routes/home.books.$bookId.edit/route';

interface BookDetailAuthorsFormProps {
Expand All @@ -12,6 +12,7 @@ interface BookDetailAuthorsFormProps {
const BookDetailAuthorsForm = ({ form }: BookDetailAuthorsFormProps) => {
return (
<TagsInput
size="md"
label="著者"
placeholder="竹岡尚三"
key={form.key('authors')}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import FormLayout from '../layouts/FormLayout';
import { UseFormReturnType } from '@mantine/form';
import BookDetailTitleForm from './BookDetailTitleForm';
import { CustomUpdateBookBody } from '~/routes/home.books.$bookId.edit/route';
import FormLayout from '../layouts/FormLayout';
import BookDetailAuthorsForm from './BookDetailAuthorsForm';
import BookDetailPublisherForm from './BookDetailPublisherForm';
import BookDetailPublishedDateForm from './BookDetailPublishedDateForm';
import BookDetailEditTitle from './BookDetailEditTitle';
import BookDetailIsbnForm from './BookDetailIsbnForm';
import BookDetailPublishedDateForm from './BookDetailPublishedDateForm';
import BookDetailPublisherForm from './BookDetailPublisherForm';
import BookDetailStockForm from './BookDetailStockForm';
import { CustomUpdateBookBody } from '~/routes/home.books.$bookId.edit/route';
import BookDetailEditTitle from './BookDetailEditTitle';
import BookDetailSubmitButton from './BookDetailSubmitButton';
import BookDetailTitleForm from './BookDetailTitleForm';

interface BookDetailEditContentProps {
form: UseFormReturnType<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { UseFormReturnType } from '@mantine/form';
import { TextInput } from '@mantine/core';
import { UseFormReturnType } from '@mantine/form';
import { CustomUpdateBookBody } from '~/routes/home.books.$bookId.edit/route';

interface BookDetailIsbnFormProps {
Expand All @@ -12,6 +12,7 @@ interface BookDetailIsbnFormProps {
const BookDetailIsbnForm = ({ form }: BookDetailIsbnFormProps) => {
return (
<TextInput
size="md"
label="ISBN"
placeholder="987654321098"
key={form.key('isbn')}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { UseFormReturnType } from '@mantine/form';
import { DateInput } from '@mantine/dates';
import { UseFormReturnType } from '@mantine/form';
import { CustomUpdateBookBody } from '~/routes/home.books.$bookId.edit/route';

interface BookDetailPublishedDateFormProps {
Expand All @@ -14,6 +14,7 @@ const BookDetailPublishedDateForm = ({
}: BookDetailPublishedDateFormProps) => {
return (
<DateInput
size="md"
label="出版日"
placeholder="2000-01-31"
valueFormat="YYYY-MM-DD"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { UseFormReturnType } from '@mantine/form';
import { TextInput } from '@mantine/core';
import { UseFormReturnType } from '@mantine/form';
import { CustomUpdateBookBody } from '~/routes/home.books.$bookId.edit/route';

interface BookDetailPublisherFormProps {
Expand All @@ -12,6 +12,7 @@ interface BookDetailPublisherFormProps {
const BookDetailPublisherForm = ({ form }: BookDetailPublisherFormProps) => {
return (
<TextInput
size="md"
label="出版社"
placeholder="SOFTBANK"
key={form.key('publisher')}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { UseFormReturnType } from '@mantine/form';
import { NumberInput } from '@mantine/core';
import { UseFormReturnType } from '@mantine/form';
import { CustomUpdateBookBody } from '~/routes/home.books.$bookId.edit/route';

interface BookDetailStockFormProps {
Expand All @@ -12,6 +12,7 @@ interface BookDetailStockFormProps {
const BookDetailStockForm = ({ form }: BookDetailStockFormProps) => {
return (
<NumberInput
size="md"
label="在庫数"
placeholder="0"
key={form.key('stock')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { TbBookUpload } from 'react-icons/tb';

const BookDetailSubmitButton = () => {
return (
<Button type="submit" leftSection={<TbBookUpload />}>
<Button type="submit" leftSection={<TbBookUpload />} fz="lg">
更新
</Button>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { UseFormReturnType } from '@mantine/form';
import { TextInput } from '@mantine/core';
import { UseFormReturnType } from '@mantine/form';
import { CustomUpdateBookBody } from '~/routes/home.books.$bookId.edit/route';

interface BookDetailTitleFormProps {
Expand All @@ -12,6 +12,7 @@ interface BookDetailTitleFormProps {
const BookDetailTitleForm = ({ form }: BookDetailTitleFormProps) => {
return (
<TextInput
size="md"
label="タイトル"
placeholder="Javaプログラミング徹底マスター"
key={form.key('title')}
Expand Down

0 comments on commit 75a6253

Please sign in to comment.