diff --git a/velog-frontend/src/components/user/UserHead/UserHead.js b/velog-frontend/src/components/user/UserHead/UserHead.js index 4988f31..33fd48e 100644 --- a/velog-frontend/src/components/user/UserHead/UserHead.js +++ b/velog-frontend/src/components/user/UserHead/UserHead.js @@ -27,6 +27,7 @@ const UserHead = ({ username, profile, self, following, onToggleFollow, rawTagNa const { github, twitter, facebook, email, url } = profile.profile_links; const hasAccount = !!(github || twitter || facebook); const hasLink = !!(url || email); + const urlRegExr = /(http|https):\/\/([\w+?\.\w+])+([a-zA-Z0-9\~\!\@\#\$\%\^\&\*\(\)_\-\=\+\\\/\?\.\:\;\'\,]*)?/; return (
@@ -37,20 +38,19 @@ const UserHead = ({ username, profile, self, following, onToggleFollow, rawTagNa thumbnail
- {!self && - following !== undefined && ( -
- {following ? ( - - ) : ( - - )} -
- )} + {!self && following !== undefined && ( +
+ {following ? ( + + ) : ( + + )} +
+ )}
@{username}
@@ -87,7 +87,10 @@ const UserHead = ({ username, profile, self, following, onToggleFollow, rawTagNa {url && (
- + {url}