Skip to content

Commit c285898

Browse files
authored
Remove page wrappers (#28610)
1 parent e64e7ee commit c285898

File tree

193 files changed

+741
-1899
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+741
-1899
lines changed

shared/chat/blocking/block-modal/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ type BlocksForUser = {chatBlocked?: boolean; followBlocked?: boolean; report?: R
2020
export type Props = {
2121
adderUsername?: string
2222
blockUserByDefault?: boolean
23-
filterUserByDefault?: boolean
24-
flagUserByDefault?: boolean
25-
reportsUserByDefault?: boolean
26-
conversationIDKey?: string
2723
context?: BlockModalContext
24+
conversationIDKey?: string
25+
filterUserByDefault?: boolean
2826
finishWaiting: boolean
27+
flagUserByDefault?: boolean
2928
isBlocked: (username: string, which: BlockType) => boolean
3029
loadingWaiting: boolean
3130
onClose: () => void
3231
onFinish: (newBlocks: NewBlocksMap, blockTeam: boolean, report?: ReportSettings) => void
3332
otherUsernames?: Array<string>
3433
refreshBlocks: () => void
34+
reportsUserByDefault?: boolean
3535
teamname?: string
3636
}
3737

shared/chat/blocking/block-modal/page.tsx

Lines changed: 0 additions & 15 deletions
This file was deleted.

shared/chat/conversation/attachment-fullscreen/page.tsx

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import type * as T from '@/constants/types'
2+
import * as React from 'react'
3+
import {useSafeAreaFrame} from 'react-native-safe-area-context'
4+
import Full from '.'
5+
6+
type OwnProps = {
7+
ordinal: T.Chat.Ordinal
8+
}
9+
10+
const Screen = (p: OwnProps) => {
11+
const {width, height} = useSafeAreaFrame()
12+
const isPortrait = height > width
13+
const wasPortraitRef = React.useRef(isPortrait)
14+
// reset zoom etc on change
15+
const [key, setKey] = React.useState(0)
16+
17+
React.useEffect(() => {
18+
if (isPortrait !== wasPortraitRef.current) {
19+
wasPortraitRef.current = isPortrait
20+
setKey(k => k + 1)
21+
}
22+
}, [isPortrait])
23+
24+
return <Full ordinal={p.ordinal} showHeader={isPortrait} key={String(key)} />
25+
}
26+
27+
export default Screen

shared/chat/conversation/attachment-get-titles/page.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

shared/chat/conversation/bot/confirm.page.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

shared/chat/conversation/bot/install.page.tsx

Lines changed: 0 additions & 9 deletions
This file was deleted.

shared/chat/conversation/bot/search.page.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

shared/chat/conversation/bot/team-picker.page.tsx

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)