diff --git a/src/pages/travelers/Traveler.js b/src/pages/travelers/Traveler.js index d547981..a9ed40a 100644 --- a/src/pages/travelers/Traveler.js +++ b/src/pages/travelers/Traveler.js @@ -1,30 +1,52 @@ -import React from 'react' -import styles from '../../styles/TravelerProfile.module.css' -import btnStyles from '../../styles/Button.module.css' -import { useCurrentUser } from '../../contexts/CurrentUserContext' -import { Link } from 'react-router-dom' -import Avatar from '../../components/Avatar' +import React from "react"; +import styles from "../../styles/TravelerProfile.module.css"; +import btnStyles from "../../styles/Button.module.css"; +import { useCurrentUser } from "../../contexts/CurrentUserContext"; +import { Link } from "react-router-dom"; +import Avatar from "../../components/Avatar"; +import { Button } from "react-bootstrap"; const Traveler = (props) => { - const {traveler, mobile, imageSize=55} = props - const {id, following_id, image, owner} = traveler; + const { traveler, mobile, imageSize = 55 } = props; + const { id, following_id, image, owner } = traveler; - const currentUser = useCurrentUser(); - const is_owner = currentUser?.username === owner; + const currentUser = useCurrentUser(); + const is_owner = currentUser?.username === owner; return ( -
-
- - - -
-
- {owner} - -
+
+
+ + + +
+
+ {owner} +
+
+ {!mobile && + currentUser && + !is_owner && + (following_id ? ( + + ) : ( + + ))} +
- ) -} + ); +}; -export default Traveler \ No newline at end of file +export default Traveler; \ No newline at end of file diff --git a/src/styles/Button.module.css b/src/styles/Button.module.css index dfaff78..70d31c1 100644 --- a/src/styles/Button.module.css +++ b/src/styles/Button.module.css @@ -41,26 +41,20 @@ .BlueOutline, .Blue:hover { - /* border: 1px solid #2142b2; */ background-color: #ffffff; color: var(--clr-accent-dark); } - .Black, - .BlackOutline:hover { - /* background-color: #242a3d; - color: white; */ - background-color: #242a3d; - color: aliceblue; + .Pink, + .PinkOutline:hover { + background-color: var(--clr-accent-danger); + color: var(--clr-primary-light); } - .Black:hover, - .BlackOutline { - /* background-color: #dadadf; - color: #242a3d; - border-color: #242a3d; */ - background-color: aliceblue; - color: #242a3d; + .Pink:hover, + .PinkOutline { + background-color: var(--clr-accent-pink); + color: var(--clr-primary-light); } .Bright {