aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-05-24 17:23:58 -0400
committerIvan Chen <ivan@tagg.id>2021-05-24 17:23:58 -0400
commit0eb78b5c2d0731f0110cb7286786440ed19c4861 (patch)
tree76cd55c91f701e1fca16d3fe68d4706b5604ff84 /src/components/profile
parentc634270d5466bf24741f1f4423696af373f88c03 (diff)
parent53f624423fa8f758da5542e62704b59fa53316ea (diff)
Merge branch 'master' into tma891-tag-with-photo-tap
Diffstat (limited to 'src/components/profile')
-rw-r--r--src/components/profile/Content.tsx8
-rw-r--r--src/components/profile/ProfileBody.tsx8
-rw-r--r--src/components/profile/PublicProfile.tsx5
3 files changed, 7 insertions, 14 deletions
diff --git a/src/components/profile/Content.tsx b/src/components/profile/Content.tsx
index 8298dc9a..2d1002dd 100644
--- a/src/components/profile/Content.tsx
+++ b/src/components/profile/Content.tsx
@@ -38,11 +38,9 @@ interface ContentProps {
}
const Content: React.FC<ContentProps> = ({userXId, screenType}) => {
const dispatch = useDispatch();
- const {
- user = NO_USER,
- profile = NO_PROFILE,
- } = useSelector((state: RootState) =>
- userXId ? state.userX[screenType][userXId] : state.user,
+ const {user = NO_USER, profile = NO_PROFILE} = useSelector(
+ (state: RootState) =>
+ userXId ? state.userX[screenType][userXId] : state.user,
);
const {blockedUsers = EMPTY_PROFILE_PREVIEW_LIST} = useSelector(
(state: RootState) => state.blocked,
diff --git a/src/components/profile/ProfileBody.tsx b/src/components/profile/ProfileBody.tsx
index 7557de00..8743acfb 100644
--- a/src/components/profile/ProfileBody.tsx
+++ b/src/components/profile/ProfileBody.tsx
@@ -42,12 +42,8 @@ const ProfileBody: React.FC<ProfileBodyProps> = ({
userXId ? state.userX[screenType][userXId] : state.user,
);
- const {
- biography,
- website,
- friendship_status,
- friendship_requester_id,
- } = profile;
+ const {biography, website, friendship_status, friendship_requester_id} =
+ profile;
const {id, username, first_name, last_name} = getUserAsProfilePreviewType(
user,
diff --git a/src/components/profile/PublicProfile.tsx b/src/components/profile/PublicProfile.tsx
index b8920351..8a80c56f 100644
--- a/src/components/profile/PublicProfile.tsx
+++ b/src/components/profile/PublicProfile.tsx
@@ -55,9 +55,8 @@ const PublicProfile: React.FC<ContentProps> = ({
const [isStageTwoPromptClosed, setIsStageTwoPromptClosed] = useState(false);
const [isStageOnePromptClosed, setIsStageOnePromptClosed] = useState(false);
- const [isStageThreePromptClosed, setIsStageThreePromptClosed] = useState(
- false,
- );
+ const [isStageThreePromptClosed, setIsStageThreePromptClosed] =
+ useState(false);
const move = (direction: 'up' | 'down', title: string) => {
let categories = [...momentCategories];