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 /> */} {/* <LeafletMap /> */}
{/* <Digikala /> */} {/* <Digikala /> */}
<TestComponentNew /> {/* <TestComponentNew /> */}
</div> </div>
</Provider> </Provider>
); );

@ -11,7 +11,6 @@ const FormInput = () => {
return ( 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="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"> <div className="flex-grow flex-1 flex flex-col gap-y-4 px-4">
<Input register={register("firstName")} label="نام " type="text" />
<Input <Input
register={register("firstName")} register={register("firstName")}
// defaultValue={info?.firstName} // defaultValue={info?.firstName}
@ -45,7 +44,7 @@ const FormInput = () => {
<option>دکتری</option> <option>دکتری</option>
</select>{" "} </select>{" "}
<Input <Input
register={register("birthYear")} register={register("gender")}
label="جنسیت" label="جنسیت"
type="number" type="number"
borderClassname={`border-transparent `} borderClassname={`border-transparent `}
@ -56,7 +55,7 @@ const FormInput = () => {
<Input <Input
register={register("mobileNumber")} register={register("mobileNumber")}
label="شماره تماس" label="شماره تماس"
type="text" type="number"
borderClassname={`border-transparent `} borderClassname={`border-transparent `}
className={``} className={``}
/> />
@ -81,7 +80,7 @@ const FormInput = () => {
className={``} className={``}
/> />
<Input <Input
register={register("foundus")} register={register("idCard")}
label="کد ملی" label="کد ملی"
type="number" type="number"
borderClassname={`border-transparent `} borderClassname={`border-transparent `}

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

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

Loading…
Cancel
Save