remove extra inputs from setting

This commit is contained in:
smanylov
2026-02-03 12:30:30 +07:00
parent 1ee55f503d
commit 2adf66baa2
2 changed files with 1 additions and 39 deletions
-1
View File
@@ -1,7 +1,6 @@
'use server'
import { getSessionData, deleteSession } from '@/app/actions/session';
import { testUserData, API_BASE_URL } from '@/app/actions/definitions';
import { tokenLifeExtension } from '@/app/actions/auth';
import { redirect } from 'next/navigation';
export async function getUserData() {
+1 -38
View File
@@ -38,7 +38,7 @@ export default function PersonalDataSettings() {
<label className="form-label">
{t('email')}:
</label>
<input type="text" name="email" className="form-input" />
<input type="text" name="email" className="form-input" disabled={true}/>
<small>
{t('email-cant-change')}
</small>
@@ -49,43 +49,6 @@ export default function PersonalDataSettings() {
</label>
<input type="phone" name="phone" className="form-input" />
</div>
<div className="form-group">
<label className="form-label">
{t('gender')}:
</label>
<select
name="gender"
className="form-input"
value={selectedValue}
onChange={(e) => setSelectedValue(e.target.value)}
>
<option value="male">
{t('male')}
</option>
<option value="female">
{t('female')}
</option>
</select>
</div>
<div className="form-group">
<label className="form-label">
{t('birthday')}:
</label>
<input type="date" name="birthday" className="form-input" />
<small>
{t('used-to-send-congratulations')}
</small>
</div>
<div className="form-group">
<label className="form-label">
{t('age')}:
</label>
<input type="text" name="age" className="form-input" />
<small>
{t('automatically-filled-in-based-on-date-of-birth')}
</small>
</div>
<button type="submit" className="btn btn-primary">
{t('save-changes')}
</button>