amir hosein gorji 3 years ago
parent ff445ff831
commit d5ad130cf9
  1. 3
      src/App.css
  2. 2
      src/views/AR/index.scss
  3. 1
      src/views/Auth/Profile/Input/index.js
  4. 4
      src/views/Auth/Profile/Upload/index.js
  5. 4
      src/views/Auth/Profile/index.js
  6. 8
      src/views/Home/HomeStatic/Simple/index.js

@ -7,6 +7,9 @@
height: 100vh;
max-width: 100vw !important;
}
.MuiFormLabel-asterisk {
color: red !important;
}
@font-face {
font-family: numeralMedium;
src: url(assets/IRANSans/Farsi_numerals/IRANSans\(FaNum\)_Medium.ttf);

@ -32,7 +32,7 @@
img {
border-radius: 0.5rem;
max-height: 210px;
width: fit-content;
width: auto;
margin: 0 auto;
}
text-decoration: none !important;

@ -30,6 +30,7 @@ export default function FormPropsTextFields(props) {
variant={variant || "outlined"}
onChange={(e) => parent.onChange(e.target.name, e.target.value)}
defaultValue={defaultValue[props.name] || ""}
required={props.required}
inputProps={{ maxLength }}
onInput={
onInput

@ -8,7 +8,7 @@ export default function Upload(props) {
{window.innerWidth < 1000 ? (
<div className="mobile-auth-profile__upload d-flex justify-content-center align-items-center mb-3">
<>
{parent.state.file === null ? (
{isNaN(+parent.state.file) ? (
<AddAPhotoIcon
style={{ width: 40, height: 40, color: "white" }}
/>
@ -19,7 +19,7 @@ export default function Upload(props) {
? URL.createObjectURL(parent.state.file)
: window.baseURL + "file/" + parent.state.file
}
alt={"کاربر"}
alt={""}
/>
)}
<input

@ -409,7 +409,7 @@ class Profile extends Component {
حساب کاربری
</h1>
<p style={{ fontSize: fontSize.mobile.p }}>
لطفا مشحصات خود را به صورت کامل وارد نمایید
لطفا مشخصات خود را به صورت کامل وارد نمایید
</p>
</div>
<Upload name="file" parent={this} />
@ -421,6 +421,7 @@ class Profile extends Component {
parent={this}
defaultValue={profile}
onInput={onInput.persianOnly}
required
/>
<Input
name="lastName"
@ -428,6 +429,7 @@ class Profile extends Component {
parent={this}
defaultValue={profile}
onInput={onInput.persianOnly}
required
/>
<Input
name="username"

@ -37,7 +37,13 @@ export default function Simple(props) {
style={parentStyle}
>
<div style={childStyle} className="d-flex">
<h1 style={{ fontSize: fontSize.h1 }}>{data.title}</h1>
<h1 style={{ fontSize: fontSize.h1 }}>
{data.title}
{data.subTitle ? (
<p style={{ fontSize: 12, paddingTop: 5 }}>{data.subTitle}</p>
) : null}
</h1>
</div>
</Link>
);

Loading…
Cancel
Save