From 10d7e8e972c8fef7035ff7461c5bbebbabce2c03 Mon Sep 17 00:00:00 2001 From: hikahana <22.h.hanada.nutfes@gmail.com> Date: Tue, 19 Mar 2024 06:53:24 +0000 Subject: [PATCH 1/4] =?UTF-8?q?[feat]=20select=E3=81=ABdefaultValue?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/next-project/src/components/common/Select/Select.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/view/next-project/src/components/common/Select/Select.tsx b/view/next-project/src/components/common/Select/Select.tsx index f292cf490..f3c8992db 100644 --- a/view/next-project/src/components/common/Select/Select.tsx +++ b/view/next-project/src/components/common/Select/Select.tsx @@ -7,6 +7,7 @@ interface Props { className?: string; placeholder?: string; value?: string | number; + defaultValue?: string | number; onChange?: (e: React.ChangeEvent) => void; children?: React.ReactNode; } @@ -21,6 +22,7 @@ function Select(props: Props): JSX.Element { placeholder={props.placeholder} className={clsx(s.select, className)} value={props.value} + defaultValue={props.defaultValue} onChange={props.onChange} > {props.children} From 90f74f185de71ea90308494632442cb9dcbb27a8 Mon Sep 17 00:00:00 2001 From: hikahana <22.h.hanada.nutfes@gmail.com> Date: Tue, 19 Mar 2024 06:55:42 +0000 Subject: [PATCH 2/4] =?UTF-8?q?[fix]=20=E3=83=AD=E3=82=B0=E3=82=A4?= =?UTF-8?q?=E3=83=B3=E3=81=97=E3=81=A6=E3=81=84=E3=82=8B=E3=83=A6=E3=83=BC?= =?UTF-8?q?=E3=82=B6=E3=83=BC=E3=82=92=E8=A1=A8=E7=A4=BA=E3=81=95=E3=81=9B?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/fund_information/AddModal.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/view/next-project/src/components/fund_information/AddModal.tsx b/view/next-project/src/components/fund_information/AddModal.tsx index b295659a6..16bac2a3c 100644 --- a/view/next-project/src/components/fund_information/AddModal.tsx +++ b/view/next-project/src/components/fund_information/AddModal.tsx @@ -52,6 +52,9 @@ const OpenAddModal: FC = (props) => { return res; }, [bureauId]); + const loginUser = user.id; + const loginUserDepartment = BUREAUS.find((u) => user.bureauID === u.id)?.name; + const handler = (input: string) => (e: React.ChangeEvent | React.ChangeEvent) => { @@ -104,7 +107,8 @@ const OpenAddModal: FC = (props) => {

担当者の局

- setBureauId(Number(e.target.value))}> + {BUREAUS.map((bureaus) => (

担当者

- + {filteredUsers.map((user) => (

担当者の局

- setBureauId(Number(e.target.value))} + > {BUREAUS.map((bureaus) => (

担当者

- {filteredUsers.map((user) => (
- + 学内募金登録
From 3285355f2b8348ab7c89ca3c2e390d89171263ed Mon Sep 17 00:00:00 2001 From: Kubosaka Date: Fri, 22 Mar 2024 08:31:15 +0000 Subject: [PATCH 4/4] formatted by workflow --- view/next-project/src/components/fund_information/AddModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/next-project/src/components/fund_information/AddModal.tsx b/view/next-project/src/components/fund_information/AddModal.tsx index 8a273af99..0759bea3c 100644 --- a/view/next-project/src/components/fund_information/AddModal.tsx +++ b/view/next-project/src/components/fund_information/AddModal.tsx @@ -1,5 +1,5 @@ import { useRouter } from 'next/router'; -import React, { Dispatch, FC, SetStateAction, useState, useMemo, useEffect, use } from 'react'; +import React, { Dispatch, FC, SetStateAction, useState, useEffect } from 'react'; import { useRecoilState } from 'recoil'; import { Modal, CloseButton, Input, Select, PrimaryButton } from '../common';