update App.js, src/components/FormInput/index.js, input.js and src/index.scss

master
mahdi 3 years ago
parent be9e79528a
commit e2dcd50b4d
  1. 2
      src/App.js
  2. 7
      src/components/FormInput/index.js
  3. 1
      src/components/TestComponentNew/input.js
  4. 1
      src/index.scss

@ -272,7 +272,7 @@ function App() {
{/* <LeafletMap /> */}
{/* <Digikala /> */}
<TestComponentNew />
{/* <TestComponentNew /> */}
</div>
</Provider>
);

@ -11,7 +11,6 @@ const FormInput = () => {
return (
<div className="mx-72 mt-20 flex flex-row items-center justify-between divide-x-2 divide-[#F3F3F3] divide-x-reverse bg-white p-4 py-7 border border-gray-200 rounded-sm shadow-sm">
<div className="flex-grow flex-1 flex flex-col gap-y-4 px-4">
<Input register={register("firstName")} label="نام " type="text" />
<Input
register={register("firstName")}
// defaultValue={info?.firstName}
@ -45,7 +44,7 @@ const FormInput = () => {
<option>دکتری</option>
</select>{" "}
<Input
register={register("birthYear")}
register={register("gender")}
label="جنسیت"
type="number"
borderClassname={`border-transparent `}
@ -56,7 +55,7 @@ const FormInput = () => {
<Input
register={register("mobileNumber")}
label="شماره تماس"
type="text"
type="number"
borderClassname={`border-transparent `}
className={``}
/>
@ -81,7 +80,7 @@ const FormInput = () => {
className={``}
/>
<Input
register={register("foundus")}
register={register("idCard")}
label="کد ملی"
type="number"
borderClassname={`border-transparent `}

@ -1,5 +1,6 @@
import fixNumbers from "./fixNumbers";
import { useState } from "react";
const Input = ({
defaultValue,
set,

@ -11,6 +11,7 @@
font-family: "iransansBold";
src: url(./assets/fonts/IRANSansX-Bold.woff);
}
@import "./components/productDesign/ProductDesign.scss";
body {

Loading…
Cancel
Save