diff --git a/src/features/Profiles/pages/ProfilePage/AboutCard/AboutCard.tsx b/src/features/Profiles/pages/ProfilePage/AboutCard/AboutCard.tsx index 6e6deaa..76aa32d 100644 --- a/src/features/Profiles/pages/ProfilePage/AboutCard/AboutCard.tsx +++ b/src/features/Profiles/pages/ProfilePage/AboutCard/AboutCard.tsx @@ -3,8 +3,7 @@ import { User } from "src/graphql" import { trimText, withHttp } from "src/utils/helperFunctions" import { FiGithub, FiGlobe, FiLinkedin, FiTwitter } from 'react-icons/fi' import Button from "src/Components/Button/Button"; -import { useToggle } from "@react-hookz/web"; -import UpdateAboutForm from "./UpdateAboutForm"; +import { PAGES_ROUTES } from "src/utils/routing"; interface Props { isOwner?: boolean; @@ -52,7 +51,6 @@ export default function AboutCard({ user, isOwner }: Props) { } ]; - const [editMode, toggleEditMode] = useToggle(false); return (
+
+ {user.jobTitle ? user.jobTitle : "No job title added"} +
} -+ {user.lightning_address ? `⚡${user.lightning_address}` : "⚡ No lightning address"} +
} - {links.some(link => link.hasValue) &&
-
- {user.jobTitle ? user.jobTitle : "No job title added"} -
} - - {(user.lightning_address || isOwner) &&- {user.lightning_address ? `⚡${user.lightning_address}` : "⚡ No lightning address"} -
} - - {(user.bio || isOwner) &&- {user.bio ? user.bio : "No bio added"} -
} -+ {user.bio ? user.bio : "No bio added"} +
} +