From e87203301d781948f72e1d40f2475746a92ff133 Mon Sep 17 00:00:00 2001
From: taha12322 <66300435+taha12322@users.noreply.github.com>
Date: Thu, 2 Sep 2021 05:40:06 +0430
Subject: [PATCH] with modal
---
profile/package.json | 3 +
profile/src/Profile.js | 4 +-
profile/src/components/about-doctor/About.js | 2 +-
profile/src/components/comments/Comments.js | 14 +++-
profile/src/components/comments/comments.scss | 8 +-
profile/src/components/modal/Modal.js | 31 +++++++
profile/src/components/modal/Modal.scss | 39 +++++++++
profile/src/components/present/Presents.js | 16 ++--
.../present/WeekDayList/WeekdayList.js | 82 +++++++++++++++++++
.../present/WeekDayList/WeekdayList.scss | 17 ++++
profile/src/components/request/Request.scss | 1 -
profile/yarn.lock | 26 ++++++
12 files changed, 228 insertions(+), 15 deletions(-)
create mode 100644 profile/src/components/modal/Modal.js
create mode 100644 profile/src/components/modal/Modal.scss
create mode 100644 profile/src/components/present/WeekDayList/WeekdayList.js
create mode 100644 profile/src/components/present/WeekDayList/WeekdayList.scss
diff --git a/profile/package.json b/profile/package.json
index 4dc5746..d560bf5 100644
--- a/profile/package.json
+++ b/profile/package.json
@@ -3,6 +3,9 @@
"version": "0.1.0",
"private": true,
"dependencies": {
+ "@fortawesome/fontawesome-svg-core": "^1.2.36",
+ "@fortawesome/free-solid-svg-icons": "^5.15.4",
+ "@fortawesome/react-fontawesome": "^0.1.15",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
diff --git a/profile/src/Profile.js b/profile/src/Profile.js
index b72017d..7ca5a82 100644
--- a/profile/src/Profile.js
+++ b/profile/src/Profile.js
@@ -3,15 +3,17 @@ import Request from "./components/request/Request";
import About from "./components/about-doctor/About";
import Comments from "./components/comments/Comments";
import Presents from "./components/present/Presents";
+import CommentModal from "./components/modal/Modal";
const Profile = () => {
return (
<>
-
+
>
);
diff --git a/profile/src/components/about-doctor/About.js b/profile/src/components/about-doctor/About.js
index a7fce13..729a0ef 100644
--- a/profile/src/components/about-doctor/About.js
+++ b/profile/src/components/about-doctor/About.js
@@ -3,7 +3,7 @@ import './About.scss'
const About = () => {
return (
-
+
درباره پزشک
لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ، و با استفاده
diff --git a/profile/src/components/comments/Comments.js b/profile/src/components/comments/Comments.js
index cd46b2e..c1bd7c2 100644
--- a/profile/src/components/comments/Comments.js
+++ b/profile/src/components/comments/Comments.js
@@ -1,13 +1,14 @@
-import React from "react";
+import React , {useState} from "react";
import Component from "./Comment/Comment";
import star from "../../assets/star.svg";
import avatar1 from "../../assets/man1.svg";
import avatar2 from "../../assets/man2.svg";
import plus from "../../assets/plus.svg";
+import CommentModal from "../modal/Modal";
import "./comments.scss";
-const comments = () => {
+const Comments = () => {
const comments = [
{
name: "محسن محمدی",
@@ -36,6 +37,10 @@ const comments = () => {
},
];
+ //modal comment
+ const [modal, setModal] = useState(false);
+ const toggle = () => setModal(!modal);
+
return (
<>
@@ -62,14 +67,15 @@ const comments = () => {
>
))}
-