diff options
author | Ivan Chen <ivan@tagg.id> | 2021-04-06 12:00:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 12:00:25 -0400 |
commit | fbcb7a01fa643a14ff73e2537f13d61b67e23ace (patch) | |
tree | fa2c2e47c1d1b84835505b29731cc76e96f35f77 /src/screens | |
parent | 3a3f63ee76a31d93068920508b21e9a220b8ef57 (diff) | |
parent | 4720aa7f84d7924309c4c5fdc7526166bf7e0718 (diff) |
Merge pull request #350 from IvanIFChen/tma682-to-date-after-3-days
[TMA-682] Display date after 3 days
Diffstat (limited to 'src/screens')
-rw-r--r-- | src/screens/profile/IndividualMoment.tsx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/screens/profile/IndividualMoment.tsx b/src/screens/profile/IndividualMoment.tsx index 8c1dc327..871d62bf 100644 --- a/src/screens/profile/IndividualMoment.tsx +++ b/src/screens/profile/IndividualMoment.tsx @@ -27,7 +27,7 @@ interface IndividualMomentProps { navigation: IndividualMomentNavigationProp; } -const ITEM_HEIGHT = SCREEN_HEIGHT * (9 / 10); +const ITEM_HEIGHT = SCREEN_HEIGHT * 0.9; const IndividualMoment: React.FC<IndividualMomentProps> = ({ route, @@ -40,13 +40,13 @@ const IndividualMoment: React.FC<IndividualMomentProps> = ({ ); const { user: {username}, - } = userXId - ? useSelector((state: RootState) => state.userX[screenType][userXId]) - : useSelector((state: RootState) => state.user); + } = useSelector((state: RootState) => + userXId ? state.userX[screenType][userXId] : state.user, + ); - const {moments} = userXId - ? useSelector((state: RootState) => state.userX[screenType][userXId]) - : useSelector((state: RootState) => state.moments); + const {moments} = useSelector((state: RootState) => + userXId ? state.userX[screenType][userXId] : state.moments, + ); const isOwnProfile = username === loggedInUsername; const momentData = moments.filter( |