diff --git a/src/pages/travelers/Traveler.js b/src/pages/travelers/Traveler.js new file mode 100644 index 0000000..d547981 --- /dev/null +++ b/src/pages/travelers/Traveler.js @@ -0,0 +1,30 @@ +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' + +const Traveler = (props) => { + const {traveler, mobile, imageSize=55} = props + const {id, following_id, image, owner} = traveler; + + const currentUser = useCurrentUser(); + const is_owner = currentUser?.username === owner; + + return ( +
+
+ + + +
+
+ {owner} + +
+
+ ) +} + +export default Traveler \ No newline at end of file diff --git a/src/styles/TravelerProfile.module.css b/src/styles/TravelerProfile.module.css new file mode 100644 index 0000000..7ff3cd2 --- /dev/null +++ b/src/styles/TravelerProfile.module.css @@ -0,0 +1,3 @@ +.WordBreak { + word-break: break-all; +}