Refactor profile screen to use new pager and react-query (#1870)
* Profile tabs WIP * Refactor the profile screen to use react-query (WIP) * Add the profile shadow and get follow, mute, and block working * Cleanup --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
This commit is contained in:
parent
c3edde8ac6
commit
e1938931e0
9 changed files with 730 additions and 456 deletions
|
@ -13,6 +13,7 @@ import {logger} from '#/logger'
|
|||
import {useModalControls} from '#/state/modals'
|
||||
import {FeedDescriptor} from '#/state/queries/post-feed'
|
||||
import {EmptyState} from '../util/EmptyState'
|
||||
import {cleanError} from '#/lib/strings/errors'
|
||||
|
||||
enum KnownError {
|
||||
Block,
|
||||
|
@ -69,7 +70,12 @@ export function FeedErrorMessage({
|
|||
)
|
||||
}
|
||||
|
||||
return <ErrorMessage message={error} onPressTryAgain={onPressTryAgain} />
|
||||
return (
|
||||
<ErrorMessage
|
||||
message={cleanError(error)}
|
||||
onPressTryAgain={onPressTryAgain}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
function FeedgenErrorMessage({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue