Skip to content

Commit

Permalink
fix: conversation screen padding (#11266)
Browse files Browse the repository at this point in the history
  • Loading branch information
MounirDhahri authored Dec 10, 2024
1 parent 9da2ecb commit 8bb13ce
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions src/app/Scenes/Inbox/Screens/Conversation.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { OwnerType } from "@artsy/cohesion"
import { BackButton, InfoCircleIcon, Touchable } from "@artsy/palette-mobile"
import { BackButton, InfoCircleIcon, Screen, Touchable } from "@artsy/palette-mobile"
import NetInfo from "@react-native-community/netinfo"
import { ConversationQuery } from "__generated__/ConversationQuery.graphql"
import { Conversation_me$data } from "__generated__/Conversation_me.graphql"
Expand Down Expand Up @@ -257,28 +257,30 @@ export const ConversationQueryRenderer: React.FC<{
}> = (props) => {
const { conversationID, navigator } = props
return (
<ProvideScreenTracking
info={{
context_screen: Schema.PageNames.ConversationPage,
context_screen_owner_id: props.conversationID,
context_screen_owner_type: OwnerType.conversation,
}}
>
<QueryRenderer<ConversationQuery>
environment={getRelayEnvironment()}
query={graphql`
query ConversationQuery($conversationID: String!) {
me {
...Conversation_me
}
}
`}
variables={{
conversationID,
<Screen>
<ProvideScreenTracking
info={{
context_screen: Schema.PageNames.ConversationPage,
context_screen_owner_id: props.conversationID,
context_screen_owner_type: OwnerType.conversation,
}}
cacheConfig={{ force: true }}
render={renderWithLoadProgress(ConversationFragmentContainer, { navigator })}
/>
</ProvideScreenTracking>
>
<QueryRenderer<ConversationQuery>
environment={getRelayEnvironment()}
query={graphql`
query ConversationQuery($conversationID: String!) {
me {
...Conversation_me
}
}
`}
variables={{
conversationID,
}}
cacheConfig={{ force: true }}
render={renderWithLoadProgress(ConversationFragmentContainer, { navigator })}
/>
</ProvideScreenTracking>
</Screen>
)
}

0 comments on commit 8bb13ce

Please sign in to comment.