File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed
Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,6 @@ export const CreateUserSchema = BaseUserSchema.omit({ id: true }).extend({
8787 learningLanguageIds : z . array ( z . string ( ) . uuid ( ) ) ,
8888
8989 // Email fields
90- defaultEmail : z . string ( ) . email ( ) . optional ( ) ,
9190 customEmail : z . string ( ) . email ( ) . optional ( ) ,
9291 allowNotifications : z . boolean ( ) . default ( true ) ,
9392 allowPeriodicNotifications : z . boolean ( ) . default ( true ) ,
Original file line number Diff line number Diff line change @@ -71,12 +71,6 @@ export default function Page() {
7171 setIsPhotoCropModalOpen = { setIsPhotoCropModalOpen }
7272 />
7373 ) }
74- < label className = "mt-5 flex flex-col sm:mt-0 sm:flex-row sm:items-center sm:justify-between" >
75- { t ( "basic.allowPeriodicNotification" ) }
76- < span className = "flex w-1/2 flex-row justify-center" >
77- < input type = "checkbox" name = "allowNotifications" className = "checkbox checkbox-primary" />
78- </ span >
79- </ label >
8074 < SubmitButton status = { ctx . status } />
8175 </ form >
8276 ) ;
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export default function Page() {
5757 < input
5858 id = "defaultEmail"
5959 type = "email"
60- value = { ctx . formData . defaultEmail ?? t ( "placeholders.defaultEmail" ) }
60+ value = { me . defaultEmail ?? t ( "placeholders.defaultEmail" ) }
6161 disabled
6262 className = "input input-bordered grow"
6363 />
@@ -122,6 +122,7 @@ export default function Page() {
122122 className = { styles . inputToggle }
123123 />
124124 </ label >
125+ { /*
125126 <label htmlFor="allowPeriodicNotifications" className="flex items-center justify-between">
126127 <span>{t("notifications.allowPeriodic")}</span>
127128 <input
@@ -133,6 +134,7 @@ export default function Page() {
133134 className={styles.inputToggle}
134135 />
135136 </label>
137+ */ }
136138 </ div >
137139 </ div >
138140 < SubmitButton status = { ctx . status } />
Original file line number Diff line number Diff line change @@ -143,6 +143,8 @@ export default function Page() {
143143 className = "my-4 w-full rounded-xl border border-gray-500 bg-white p-2 sm:w-1/2"
144144 />
145145 </ label >
146+ { /*
147+ 定期通知実装まで放置
146148 <label className="mt-5 flex flex-col sm:mt-0 sm:flex-row sm:items-center sm:justify-between">
147149 {t("settings.basic.allowPeriodicNotification")}
148150 <span className="flex w-1/2 flex-row justify-center">
@@ -154,6 +156,7 @@ export default function Page() {
154156 />
155157 </span>
156158 </label>
159+ */ }
157160 </ div >
158161
159162 < div className = "my-10 px-15" >
You can’t perform that action at this time.
0 commit comments