diff --git a/src/App.js b/src/App.js index 747a80d..ef63201 100644 --- a/src/App.js +++ b/src/App.js @@ -91,6 +91,7 @@ import ProfileInfo from "./components/ProfileInfo"; import UserProfileInfo from "./components/UserProfileInfo"; import CurrentTime from "./components/CurrentTime"; import CurrentDateShamsi from "./components/CurrentDateShamsi"; +import DateTime from "./components/DateTime"; function App() { return ( @@ -140,7 +141,7 @@ function App() { {/* */} {/* */} {/* */} - + {/* */} {/* */} {/* */} {/* */} @@ -182,6 +183,7 @@ function App() { {/* */} {/* */} + {/* */} {/*
diff --git a/src/components/DateTime/index.js b/src/components/DateTime/index.js new file mode 100644 index 0000000..821edb7 --- /dev/null +++ b/src/components/DateTime/index.js @@ -0,0 +1,25 @@ +import React from "react"; +import CurrentDateShamsi from "../CurrentDateShamsi"; +import CurrentTime from "../CurrentTime"; +import ProfileInfo from "../ProfileInfo"; + +const DateTime = () => { + return ( +
+ {/* ? time */} +
+ ساعت + +
+ {/* ? date */} + +
+ ); +}; + +export default DateTime; + +ProfileInfo.DateTime = { + name: "سبحان قاسمی", + role: "خادم محترم", +}; diff --git a/src/components/ProfileInfo/index.js b/src/components/ProfileInfo/index.js index b1ae2e0..f997dc6 100644 --- a/src/components/ProfileInfo/index.js +++ b/src/components/ProfileInfo/index.js @@ -5,7 +5,7 @@ import arrowDown from "./arrow-down.svg"; const ProfileInfo = ({ name, role }) => { return ( -
+
profile-pic

{name}