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: [
[
{

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

@ -6,22 +6,14 @@ import Input from "./Input";
const FormInput = () => {
const { register, getValues } = useForm();
return (
<div>
<div className="max-w-[1000px] p-20 mx-auto mt-20 bg-white rounded-sm shadow-sm">
<Input
register={register("firstName")}
// defaultValue={info?.firstName}
label="نام "
/>
<Input
register={register("lastName")}
// defaultValue={info?.lastName}
label="نام خانوادگی"
/>
</div>
);
};
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) => (
<div key={index} className="space-y-1">
<p
className="text-lg text-[#0F0543]"
style={{ fontFamily: "iransansBold" }}
>
{item.name}
</p>
<p className="text-lg text-[#0F0543]">{item.name}</p>
<p className="text-xs text-[#0F0543]">
تاریخ ورود:
<span className="mr-1">{item.enterData}</span>

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

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

Loading…
Cancel
Save