update 6 files

master
mahdi 3 years ago
parent 961f1c14f1
commit 857535b1d0
  1. 1
      src/components/DistributedData/index.js
  2. 4
      src/components/FormInput/Input.js
  3. 10
      src/components/FormInput/index.js
  4. 7
      src/components/RoomCardInfo/index.js
  5. 1
      src/index.css
  6. 4
      src/index.scss

@ -66,6 +66,7 @@ DistributedData.defaultProps = {
}, },
], ],
], ],
items: [ items: [
[ [
{ {

@ -4,7 +4,7 @@ import { useState } from "react";
import fixNumbers from "./fixNumbers"; import fixNumbers from "./fixNumbers";
const Inputs = ({ const FormFields = ({
defaultValue, defaultValue,
set, set,
label, label,
@ -68,4 +68,4 @@ const Inputs = ({
); );
}; };
export default Inputs; export default FormFields;

@ -6,22 +6,14 @@ import Input from "./Input";
const FormInput = () => { const FormInput = () => {
const { register, getValues } = useForm(); const { register, getValues } = useForm();
return ( return (
<div> <div className="max-w-[1000px] p-20 mx-auto mt-20 bg-white rounded-sm shadow-sm">
<Input <Input
register={register("firstName")} register={register("firstName")}
// defaultValue={info?.firstName} // defaultValue={info?.firstName}
label="نام " label="نام "
/> />
<Input
register={register("lastName")}
// defaultValue={info?.lastName}
label="نام خانوادگی"
/>
</div> </div>
); );
}; };
export default FormInput; export default FormInput;
// <div className="max-w-[850px] mx-auto mt-20 bg-white rounded-sm shadow-sm">
// </div>

@ -15,12 +15,7 @@ const RoomCardInfo = ({ items }) => {
{items.map((item, index) => ( {items.map((item, index) => (
<div key={index} className="space-y-1"> <div key={index} className="space-y-1">
<p <p className="text-lg text-[#0F0543]">{item.name}</p>
className="text-lg text-[#0F0543]"
style={{ fontFamily: "iransansBold" }}
>
{item.name}
</p>
<p className="text-xs text-[#0F0543]"> <p className="text-xs text-[#0F0543]">
تاریخ ورود: تاریخ ورود:
<span className="mr-1">{item.enterData}</span> <span className="mr-1">{item.enterData}</span>

@ -1,6 +1,7 @@
@tailwind base; @tailwind base;
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;
@font-face { @font-face {
font-family: "iransans-medium"; font-family: "iransans-medium";
src: url(./assets/fonts/iransans/ttf/IRANSansWeb_Medium.ttf); src: url(./assets/fonts/iransans/ttf/IRANSansWeb_Medium.ttf);

@ -2,8 +2,6 @@
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;
@import "./components/productDesign/ProductDesign.scss";
@font-face { @font-face {
font-family: "iransans-medium"; font-family: "iransans-medium";
src: url(./assets/fonts/IRANSansXFaNum-Regular.woff); src: url(./assets/fonts/IRANSansXFaNum-Regular.woff);
@ -14,6 +12,8 @@
src: url(./assets/fonts/IRANSansX-Bold.woff); src: url(./assets/fonts/IRANSansX-Bold.woff);
} }
@import "./components/productDesign/ProductDesign.scss";
body { body {
font-family: iransans-medium; font-family: iransans-medium;
direction: rtl; direction: rtl;

Loading…
Cancel
Save