diff --git a/src/assets/images/default-profile-pic.svg b/src/assets/images/default-profile-pic.svg new file mode 100644 index 0000000..49d49b6 --- /dev/null +++ b/src/assets/images/default-profile-pic.svg @@ -0,0 +1,12 @@ + diff --git a/src/components/Avatar/index.js b/src/components/Avatar/index.js index 3b53adf..2e82277 100644 --- a/src/components/Avatar/index.js +++ b/src/components/Avatar/index.js @@ -1,5 +1,5 @@ import React from "react"; -import userImage from "../../assets/images/user.png"; +import userImage from "../../assets/images/default-profile-pic.svg"; function Avatar({ source, size, rounded, status }) { return ( diff --git a/src/views/Dashboard/layouts/Mobile/User.js b/src/views/Dashboard/layouts/Mobile/User.js index f20bb9d..73ab508 100644 --- a/src/views/Dashboard/layouts/Mobile/User.js +++ b/src/views/Dashboard/layouts/Mobile/User.js @@ -1,5 +1,6 @@ import React from "react"; import { connect } from "react-redux"; +import Avatar from "../../../../components/Avatar"; const User = ({ user, mobile }) => { const [dropdown, setDropdown] = React.useState(true); @@ -17,18 +18,14 @@ const User = ({ user, mobile }) => { style={{ width: 70, height: 70 }} /> ) : ( -
+