-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* show quote posts * fix filter * fix keyExtractor * move likedby and repostedby to new file structure * use modern list component * remove relative imports * update quotes count after quoting * call `onPost` after updating quote count * Revert "update quotes count after quoting" This reverts commit 1f18877. * implement * update like count in quotes list * only add `onPostReply` where needed * Filter quotes with detached embeds * Bump SDK * Don't show error for no results --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Eric Bailey <git@esb.lol>
- Loading branch information
1 parent
ddb0b80
commit 56ab5e1
Showing
22 changed files
with
463 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from 'react' | ||
import {View} from 'react-native' | ||
import {msg} from '@lingui/macro' | ||
import {useLingui} from '@lingui/react' | ||
import {useFocusEffect} from '@react-navigation/native' | ||
|
||
import {CommonNavigatorParams, NativeStackScreenProps} from '#/lib/routes/types' | ||
import {makeRecordUri} from '#/lib/strings/url-helpers' | ||
import {useSetMinimalShellMode} from '#/state/shell' | ||
import {PostQuotes as PostQuotesComponent} from '#/view/com/post-thread/PostQuotes' | ||
import {ViewHeader} from '#/view/com/util/ViewHeader' | ||
import {atoms as a} from '#/alf' | ||
|
||
type Props = NativeStackScreenProps<CommonNavigatorParams, 'PostQuotes'> | ||
export const PostQuotesScreen = ({route}: Props) => { | ||
const setMinimalShellMode = useSetMinimalShellMode() | ||
const {name, rkey} = route.params | ||
const uri = makeRecordUri(name, 'app.bsky.feed.post', rkey) | ||
const {_} = useLingui() | ||
|
||
useFocusEffect( | ||
React.useCallback(() => { | ||
setMinimalShellMode(false) | ||
}, [setMinimalShellMode]), | ||
) | ||
|
||
return ( | ||
<View style={a.flex_1}> | ||
<ViewHeader title={_(msg`Quotes`)} /> | ||
<PostQuotesComponent uri={uri} /> | ||
</View> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.