diff --git a/shared/app/global-errors.tsx b/shared/app/global-errors.tsx
index d1257d310d98..34096f4029c2 100644
--- a/shared/app/global-errors.tsx
+++ b/shared/app/global-errors.tsx
@@ -213,7 +213,7 @@ const GlobalError = () => {
}
return (
-
+
{summary}
@@ -239,7 +239,7 @@ const GlobalError = () => {
{details}
-
+
)
}
diff --git a/shared/app/runtime-stats.tsx b/shared/app/runtime-stats.tsx
index 4214b75d8e5c..ae2bc1d8ff0b 100644
--- a/shared/app/runtime-stats.tsx
+++ b/shared/app/runtime-stats.tsx
@@ -226,7 +226,7 @@ const RuntimeStatsDesktop = ({stats}: Props) => {
return (
<>
- setMoreLogs(m => !m)} direction="vertical" style={styles.container} gap="xxtiny" fullWidth={true}>
+ setMoreLogs(m => !m)} direction="vertical" style={styles.container} gap="xxtiny" fullWidth={true}>
{!moreLogs &&
stats.processStats?.map((stat, i) => {
return (
@@ -302,7 +302,7 @@ const RuntimeStatsDesktop = ({stats}: Props) => {
)*/}
-
+
>
)
@@ -331,9 +331,9 @@ const RuntimeStatsMobile = ({stats}: Props) => {
style={showLogs ? styles.modalLogStats : styles.modalLogStatsHidden}
gap="xtiny"
>
- setShowLogs(s => !s)} direction="vertical">
+ setShowLogs(s => !s)} direction="vertical">
-
+
{processStat && (
diff --git a/shared/chat/audio/audio-player.tsx b/shared/chat/audio/audio-player.tsx
index 89556b0f0b5e..850f1e053afc 100644
--- a/shared/chat/audio/audio-player.tsx
+++ b/shared/chat/audio/audio-player.tsx
@@ -98,13 +98,13 @@ const AudioPlayer = (props: Props) => {
style={Kb.Styles.collapseStyles([styles.container, {height: big ? 56 : 40}])}
gap="tiny"
>
-
+
-
+
{formatAudioRecordDuration(timeLeft)}
diff --git a/shared/chat/conversation/attachment-fullscreen/index.tsx b/shared/chat/conversation/attachment-fullscreen/index.tsx
index b5315e66d4b1..6b233ff19d18 100644
--- a/shared/chat/conversation/attachment-fullscreen/index.tsx
+++ b/shared/chat/conversation/attachment-fullscreen/index.tsx
@@ -31,7 +31,7 @@ type ArrowProps = {
const Arrow = (props: ArrowProps) => {
const {left, onClick} = props
return (
- {
color={Kb.Styles.globalColors.white}
style={Kb.Styles.collapseStyles([styles.arrow, left && styles.arrowLeft, !left && styles.arrowRight])}
/>
-
+
)
}
diff --git a/shared/chat/conversation/attachment-get-titles.tsx b/shared/chat/conversation/attachment-get-titles.tsx
index c0646705aa72..f5cdc54c5bea 100644
--- a/shared/chat/conversation/attachment-get-titles.tsx
+++ b/shared/chat/conversation/attachment-get-titles.tsx
@@ -198,7 +198,7 @@ const ContainerInner = (ownProps: OwnProps) => {
return (
<>
- inputRef.current?.blur()}>
+ inputRef.current?.blur()}>
{preview}
{pathAndInfos.length > 0 && !isMobile && (
@@ -227,7 +227,7 @@ const ContainerInner = (ownProps: OwnProps) => {
inputStyle={styles.input}
/>
-
+
{!isMobile && }
{isLast ? (
diff --git a/shared/chat/conversation/bot/team-picker.tsx b/shared/chat/conversation/bot/team-picker.tsx
index 1cc6088612b2..bab019e94579 100644
--- a/shared/chat/conversation/bot/team-picker.tsx
+++ b/shared/chat/conversation/bot/team-picker.tsx
@@ -44,7 +44,7 @@ const BotTeamPicker = (props: Props) => {
}
const renderResult = (index: number, item: T.RPCChat.ConvSearchHit) => {
return (
- onSelect(item.convID)} direction="horizontal" fullWidth={true} gap="tiny" style={styles.results}>
+ onSelect(item.convID)} direction="horizontal" fullWidth={true} gap="tiny" style={styles.results}>
{item.isTeam ? (
) : (
@@ -53,7 +53,7 @@ const BotTeamPicker = (props: Props) => {
{item.name}
-
+
)
}
return (
diff --git a/shared/chat/conversation/fwd-msg.tsx b/shared/chat/conversation/fwd-msg.tsx
index 18e179f5c929..112984361c51 100644
--- a/shared/chat/conversation/fwd-msg.tsx
+++ b/shared/chat/conversation/fwd-msg.tsx
@@ -159,7 +159,7 @@ const TeamPickerInner = (props: Props) => {
const renderResult = (index: number, item: T.RPCChat.ConvSearchHit) => {
return (
- onSelect(item.convID)} direction="horizontal" fullWidth={true} gap="tiny" style={styles.results}>
+ onSelect(item.convID)} direction="horizontal" fullWidth={true} gap="tiny" style={styles.results}>
{item.isTeam ? (
{
{item.name}
-
+
)
}
diff --git a/shared/chat/conversation/info-panel/attachments.tsx b/shared/chat/conversation/info-panel/attachments.tsx
index e0094cb63780..f8b3390681c9 100644
--- a/shared/chat/conversation/info-panel/attachments.tsx
+++ b/shared/chat/conversation/info-panel/attachments.tsx
@@ -188,7 +188,7 @@ const MediaThumb = (props: MediaThumbProps) => {
const {sizing, thumb} = props
return (
-
+
{thumb.typ === ThumbTyp.AUDIO ? (
@@ -206,7 +206,7 @@ const MediaThumb = (props: MediaThumbProps) => {
) : (
)}
-
+
{thumb.typ === ThumbTyp.VIDEO && (
@@ -231,7 +231,7 @@ const DocViewRow = (props: DocViewRowProps) => {
})
return (
-
+
{item.name}
@@ -240,7 +240,7 @@ const DocViewRow = (props: DocViewRowProps) => {
Sent by {item.author} • {formatTimeForMessages(item.ctime)}
-
+
{item.downloading && (
Downloading...
@@ -271,7 +271,7 @@ const getColor = (selected: boolean) =>
const AttachmentTypeSelector = (props: SelectorProps) => (
- (
Media
-
-
+ (
Docs
-
-
+ (
Links
-
+
)
@@ -916,7 +916,7 @@ export const useAttachmentSections = (
key: month.key,
renderItem: ({item}: {item: Item}) => {
return item.type === 'link' ? (
-
{!!item.title && }
-
+
) : null
},
renderSectionHeader: () => ,
diff --git a/shared/chat/conversation/info-panel/settings/min-writer-role.tsx b/shared/chat/conversation/info-panel/settings/min-writer-role.tsx
index f8ea37b6dde8..e77a57e662b2 100644
--- a/shared/chat/conversation/info-panel/settings/min-writer-role.tsx
+++ b/shared/chat/conversation/info-panel/settings/min-writer-role.tsx
@@ -140,7 +140,7 @@ const Dropdown = (p: DropdownProps) => {
])
return (
<>
- {
{upperFirst(minWriterRole)}
-
+
{popup}
>
diff --git a/shared/chat/conversation/input-area/normal/input.tsx b/shared/chat/conversation/input-area/normal/input.tsx
index 3ea834ada2c9..c3052a7b15c6 100644
--- a/shared/chat/conversation/input-area/normal/input.tsx
+++ b/shared/chat/conversation/input-area/normal/input.tsx
@@ -463,7 +463,7 @@ const ExplodingButton = function ExplodingButton(p: ExplodingButtonProps) {
const {popup, popupAnchor, showingPopup, showPopup} = Kb.usePopup2(makePopup)
return (
-
)}
-
+
)
}
@@ -986,7 +986,7 @@ const NativeButtons = function NativeButtons(p: NativeButtonsProps) {
}
const explodingIcon = !isEditing && !cannotWrite && (
-
+
{isExploding ? (
@@ -996,7 +996,7 @@ const NativeButtons = function NativeButtons(p: NativeButtonsProps) {
) : (
)}
-
+
)
return (
@@ -1065,14 +1065,14 @@ const NativeAnimatedExpand = (() => {
}, [expanded, offset])
return (
-
+
-
+
)
}
}
diff --git a/shared/chat/conversation/input-area/suggestors/common.tsx b/shared/chat/conversation/input-area/suggestors/common.tsx
index d7c4c49fdecf..1c500be2a461 100644
--- a/shared/chat/conversation/input-area/suggestors/common.tsx
+++ b/shared/chat/conversation/input-area/suggestors/common.tsx
@@ -61,9 +61,9 @@ export function List(p: ListProps) {
const [selectedIndex, setSelectedIndex] = React.useState(0)
const renderItem = (idx: number, item: T) => (
- onSelected(item, true)}>
+ onSelected(item, true)}>
-
+
)
const lastSelectedIndex = React.useRef(selectedIndex)
diff --git a/shared/chat/conversation/messages/attachment/file.tsx b/shared/chat/conversation/messages/attachment/file.tsx
index 8cc2995386c0..83a3f640d08a 100644
--- a/shared/chat/conversation/messages/attachment/file.tsx
+++ b/shared/chat/conversation/messages/attachment/file.tsx
@@ -109,7 +109,7 @@ function FileContainer(p: OwnProps) {
: undefined
return (
-
+
)}
-
+
)
}
diff --git a/shared/chat/conversation/messages/attachment/image/index.tsx b/shared/chat/conversation/messages/attachment/image/index.tsx
index c189ccc40afa..c65fca6ed8a9 100644
--- a/shared/chat/conversation/messages/attachment/image/index.tsx
+++ b/shared/chat/conversation/messages/attachment/image/index.tsx
@@ -64,7 +64,7 @@ function Image(p: Props) {
gap="xxtiny"
>
-
-
+
{showTitle ? : null}
diff --git a/shared/chat/conversation/messages/attachment/shared.tsx b/shared/chat/conversation/messages/attachment/shared.tsx
index 032afbee1f88..28ed0b53960b 100644
--- a/shared/chat/conversation/messages/attachment/shared.tsx
+++ b/shared/chat/conversation/messages/attachment/shared.tsx
@@ -279,9 +279,9 @@ const useCollapseAction = (ordinal: T.Chat.Ordinal) => {
const useCollapseIconDesktop = (ordinal: T.Chat.Ordinal, isCollapsed: boolean, isWhite: boolean) => {
const onCollapse = useCollapseAction(ordinal)
return (
-
+
-
+
)
}
const useCollapseIconMobile = (_ordinal: T.Chat.Ordinal, _isCollapsed: boolean, _isWhite: boolean) => null
diff --git a/shared/chat/conversation/messages/cards/make-team.tsx b/shared/chat/conversation/messages/cards/make-team.tsx
index f24a68134b6e..dcd677c9c186 100644
--- a/shared/chat/conversation/messages/cards/make-team.tsx
+++ b/shared/chat/conversation/messages/cards/make-team.tsx
@@ -12,7 +12,7 @@ const MakeTeam = () => {
{"Make it a team? You'll be able to add and delete members as you wish."}
-
+
{
className="hover_contained_color_white"
style={styles.icon}
/>
-
+
diff --git a/shared/chat/conversation/messages/cards/new-chat.tsx b/shared/chat/conversation/messages/cards/new-chat.tsx
index ed7a916c1d54..d63cfdf6ec2c 100644
--- a/shared/chat/conversation/messages/cards/new-chat.tsx
+++ b/shared/chat/conversation/messages/cards/new-chat.tsx
@@ -43,7 +43,7 @@ function NewCard(outerProps: Props) {
{props.text}
-
+
-
+
-
-
+
{!!onReply && (
-
-
+
)}
{!!onForward && (
-
-
+
)}
{showingPicker && message && hasMessageID && (
@@ -138,7 +138,7 @@ const HoverEmoji = (props: {emoji: T.RPCGen.UserReacji; onClick: () => void}) =>
const _setHovering = () => setHovering(true)
const _setNotHovering = () => setHovering(false)
return (
- void}) =>
style={styles.hoverEmoji}
virtualText={true}
/>
-
+
)
}
diff --git a/shared/chat/conversation/messages/message-popup/reactionitem.tsx b/shared/chat/conversation/messages/message-popup/reactionitem.tsx
index 4e582712074a..4d7584e97914 100644
--- a/shared/chat/conversation/messages/message-popup/reactionitem.tsx
+++ b/shared/chat/conversation/messages/message-popup/reactionitem.tsx
@@ -23,13 +23,13 @@ const ReactionItem = (props: Props) => {
return (
{topReacjis.map((r, idx) => (
- onReact(r.name)} style={styles.clickableBox}>
+ onReact(r.name)} style={styles.clickableBox}>
-
+
))}
-
+
-
+
)
}
diff --git a/shared/chat/conversation/messages/react-button.tsx b/shared/chat/conversation/messages/react-button.tsx
index c7e2b1ccf178..0adfa62ad248 100644
--- a/shared/chat/conversation/messages/react-button.tsx
+++ b/shared/chat/conversation/messages/react-button.tsx
@@ -37,7 +37,7 @@ function ReactionButton({
text: string
}) {
return (
-
{count}
-
+
)
}
@@ -122,7 +122,7 @@ export function NewReactionButton(p: NewReactionButtonProps) {
}
return (
-
-
+
)
}
diff --git a/shared/chat/conversation/messages/text/reply.tsx b/shared/chat/conversation/messages/text/reply.tsx
index b278232af4de..c153487238c3 100644
--- a/shared/chat/conversation/messages/text/reply.tsx
+++ b/shared/chat/conversation/messages/text/reply.tsx
@@ -82,7 +82,7 @@ function ReplyStructure(p: RS) {
const {showImage, showEdited, isDeleted, onClick} = p
return (
-
+
@@ -106,7 +106,7 @@ function ReplyStructure(p: RS) {
)}
-
+
)
}
diff --git a/shared/chat/conversation/messages/text/unfurl/unfurl-list/image/index.tsx b/shared/chat/conversation/messages/text/unfurl/unfurl-list/image/index.tsx
index 72db22882892..7f4b8513b418 100644
--- a/shared/chat/conversation/messages/text/unfurl/unfurl-list/image/index.tsx
+++ b/shared/chat/conversation/messages/text/unfurl/unfurl-list/image/index.tsx
@@ -44,7 +44,7 @@ const UnfurlImage = (p: Props) => {
width={width}
/>
) : (
-
+
{
style,
])}
/>
-
+
)
}
diff --git a/shared/chat/conversation/messages/text/unfurl/unfurl-list/image/video.tsx b/shared/chat/conversation/messages/text/unfurl/unfurl-list/image/video.tsx
index 358d6b7613fe..117041521221 100644
--- a/shared/chat/conversation/messages/text/unfurl/unfurl-list/image/video.tsx
+++ b/shared/chat/conversation/messages/text/unfurl/unfurl-list/image/video.tsx
@@ -167,7 +167,7 @@ const NativeVideo = (props: Props) => {
}
return (
-
+
{active && (
{
{!playing && }
-
+
)
}
diff --git a/shared/chat/conversation/messages/wrapper/exploding-meta.tsx b/shared/chat/conversation/messages/wrapper/exploding-meta.tsx
index 33fb1d20e9c8..1fc45c9f2fcc 100644
--- a/shared/chat/conversation/messages/wrapper/exploding-meta.tsx
+++ b/shared/chat/conversation/messages/wrapper/exploding-meta.tsx
@@ -195,9 +195,9 @@ function ExplodingMetaInner(p: ExplodingMetaInnerProps) {
}
return (
-
+
{children}
-
+
)
}
diff --git a/shared/chat/conversation/pinned-message.tsx b/shared/chat/conversation/pinned-message.tsx
index c7edd057cf0d..5686921785ca 100644
--- a/shared/chat/conversation/pinned-message.tsx
+++ b/shared/chat/conversation/pinned-message.tsx
@@ -87,7 +87,7 @@ const PinnedMessage = function PinnedMessage() {
}
const sizing = imageWidth && imageHeight ? zoomImage(imageWidth, imageHeight, 30) : undefined
const pin = (
-
+
{!!imageURL && (
@@ -123,7 +123,7 @@ const PinnedMessage = function PinnedMessage() {
/>
)}
-
+
)
const popup = (
void}) => (
- onUsernameClicked(username)}>
+ onUsernameClicked(username)}>
-
+
)
const ParticipantRekey = ({rekeyers, onShowProfile: onUsernameClicked}: Props) => (
diff --git a/shared/chat/conversation/search.tsx b/shared/chat/conversation/search.tsx
index ad66b83eadba..d8feaaac7edc 100644
--- a/shared/chat/conversation/search.tsx
+++ b/shared/chat/conversation/search.tsx
@@ -359,7 +359,7 @@ const ThreadSearchDesktopInner = function ThreadSearchDesktopInner(p: CommonProp
const _renderHit = (index: number, item: SearchHit) => {
return (
- selectResult(index)} style={styles.hitRow}>
+ selectResult(index)} style={styles.hitRow}>
{item.summary}
@@ -367,7 +367,7 @@ const ThreadSearchDesktopInner = function ThreadSearchDesktopInner(p: CommonProp
{formatTimeForMessages(item.timestamp)}
-
+
)
}
diff --git a/shared/chat/create-channel/index.tsx b/shared/chat/create-channel/index.tsx
index 9e79d25127c0..528e886a48f8 100644
--- a/shared/chat/create-channel/index.tsx
+++ b/shared/chat/create-channel/index.tsx
@@ -29,10 +29,10 @@ const CreateChannel = (p: Props) => {
)}
-
+
Back
-
+
{
style={styles.contain}
>
-
+
Cancel
-
+
{
const skinToneModifier = getSkinToneModifierStrIfAvailable(emoji, skinTone)
return (
- {
@@ -243,7 +243,7 @@ function EmojiPicker(props: Props) {
showTooltip={false}
size={singleEmojiWidth}
/>
-
+
)
}
diff --git a/shared/chat/emoji-picker/skin-tone-picker.tsx b/shared/chat/emoji-picker/skin-tone-picker.tsx
index a248233f8431..8a8820389811 100644
--- a/shared/chat/emoji-picker/skin-tone-picker.tsx
+++ b/shared/chat/emoji-picker/skin-tone-picker.tsx
@@ -41,7 +41,7 @@ function SkinTonePicker(props: Props) {
props.onExpandChange?.(toSet)
}
const optionSkinTones = reorderedSkinTones(props.currentSkinTone).map((skinTone, index) => (
-
{circle(skinTone, true, isMobile && skinTone === props.currentSkinTone)}
-
+
))
return isMobile ? (
@@ -65,10 +65,10 @@ function SkinTonePicker(props: Props) {
{optionSkinTones}
) : (
- setExpanded(true)}>
+ setExpanded(true)}>
{circle(props.currentSkinTone, false, false)}
Skin tone
-
+
)
) : (
@@ -78,9 +78,9 @@ function SkinTonePicker(props: Props) {
) : (
- setExpanded(true)}>
+ setExpanded(true)}>
{circle(props.currentSkinTone, false, false)}
-
+
)}
diff --git a/shared/chat/inbox-search/index.tsx b/shared/chat/inbox-search/index.tsx
index af6a6c496893..a000c48aaf3d 100644
--- a/shared/chat/inbox-search/index.tsx
+++ b/shared/chat/inbox-search/index.tsx
@@ -445,7 +445,7 @@ const OpenTeamRow = (p: OpenTeamProps) => {
}, [showingDueToSelect, showPopup, hidePopup, showingPopup, isSelected])
return (
- {
{popup}
-
+
)
}
diff --git a/shared/chat/inbox/filter-row.tsx b/shared/chat/inbox/filter-row.tsx
index caf4aad22cd2..e9e6559f2d4e 100644
--- a/shared/chat/inbox/filter-row.tsx
+++ b/shared/chat/inbox/filter-row.tsx
@@ -81,7 +81,7 @@ function ConversationFilterInput(ownProps: OwnProps) {
/>
) : (
-
+
{isMobile ? 'Search' : 'Search (\u2318K)'}
-
+
)
return (
diff --git a/shared/chat/inbox/row/big-team-channel.tsx b/shared/chat/inbox/row/big-team-channel.tsx
index a5778196e654..1911673d040d 100644
--- a/shared/chat/inbox/row/big-team-channel.tsx
+++ b/shared/chat/inbox/row/big-team-channel.tsx
@@ -90,7 +90,7 @@ const BigTeamChannel = (props: Props) => {
) : null
return (
-
+
{
-
+
)
}
diff --git a/shared/chat/inbox/row/big-team-header.tsx b/shared/chat/inbox/row/big-team-header.tsx
index dbe2be773705..c2f8d73829e6 100644
--- a/shared/chat/inbox/row/big-team-header.tsx
+++ b/shared/chat/inbox/row/big-team-header.tsx
@@ -45,7 +45,7 @@ const BigTeamHeader = (props: Props) => {
{teamname}
- {
direction="vertical"
style={Kb.Styles.collapseStyles([styles.badge, showBadge && styles.badgeVisible])}
/>
-
+
)
}
diff --git a/shared/chat/inbox/row/big-teams-divider.tsx b/shared/chat/inbox/row/big-teams-divider.tsx
index 6483db0c73f3..89af6dafaf50 100644
--- a/shared/chat/inbox/row/big-teams-divider.tsx
+++ b/shared/chat/inbox/row/big-teams-divider.tsx
@@ -18,7 +18,7 @@ const BigTeamsDivider = (props: Props) => {
inlineLayout ? styles.inlineContainer : undefined,
])
return (
- {
T.RPCChat.localRequestInboxSmallResetRpcPromise().catch(() => {})
@@ -61,7 +61,7 @@ const BigTeamsDivider = (props: Props) => {
) : null}
)}
-
+
)
}
diff --git a/shared/chat/inbox/row/small-team/index.tsx b/shared/chat/inbox/row/small-team/index.tsx
index 8395e2dd49f8..8eea5576ee7c 100644
--- a/shared/chat/inbox/row/small-team/index.tsx
+++ b/shared/chat/inbox/row/small-team/index.tsx
@@ -100,9 +100,9 @@ const SmallTeam = (p: Props) => {
{rowContents}
) : (
-
+
{rowContents}
-
+
)}
)
diff --git a/shared/chat/inbox/row/start-new-chat.tsx b/shared/chat/inbox/row/start-new-chat.tsx
index 9a123d52a73c..efab32a00508 100644
--- a/shared/chat/inbox/row/start-new-chat.tsx
+++ b/shared/chat/inbox/row/start-new-chat.tsx
@@ -9,12 +9,12 @@ const StartNewChat = (props: Props) => {
if (isMobile) {
return (
-
+
Start a new chat
-
+
)
}
diff --git a/shared/chat/inbox/unread-shortcut.tsx b/shared/chat/inbox/unread-shortcut.tsx
index 5651e38381ce..69c4d6c32f9e 100644
--- a/shared/chat/inbox/unread-shortcut.tsx
+++ b/shared/chat/inbox/unread-shortcut.tsx
@@ -8,7 +8,7 @@ type Props = {
}
const UnreadShortcut = (props: Props) => (
- (
? `${props.unreadCount} unread`
: `${props.unreadCount} unread ${pluralize('message', props.unreadCount)}`}
-
+
)
const styles = Kb.Styles.styleSheetCreate(
diff --git a/shared/chat/selectable-big-team-channel.tsx b/shared/chat/selectable-big-team-channel.tsx
index 3ffe2791fd9f..f2ca0b9af3d1 100644
--- a/shared/chat/selectable-big-team-channel.tsx
+++ b/shared/chat/selectable-big-team-channel.tsx
@@ -89,7 +89,7 @@ const SelectableBigTeamChannel = (props: Props) => {
>
)
return (
- {
onMouseOver={_onMouseOver}
>
{props.teamname ? rowLoadedContent : }
-
+
)
}
diff --git a/shared/chat/selectable-small-team.tsx b/shared/chat/selectable-small-team.tsx
index b8fdae688c08..7d557f37d406 100644
--- a/shared/chat/selectable-small-team.tsx
+++ b/shared/chat/selectable-small-team.tsx
@@ -30,13 +30,13 @@ const SelectableSmallTeam = (props: Props) => {
if (!props.teamname && props.participants.length === 0) {
return (
-
+
-
+
)
}
return (
- {
)}
{props.showBadge && }
-
+
)
}
diff --git a/shared/chat/send-to-chat/conversation-list/conversation-list.tsx b/shared/chat/send-to-chat/conversation-list/conversation-list.tsx
index d2cecb8b23dd..9c1acab7370d 100644
--- a/shared/chat/send-to-chat/conversation-list/conversation-list.tsx
+++ b/shared/chat/send-to-chat/conversation-list/conversation-list.tsx
@@ -23,7 +23,7 @@ type Row = {
const _itemRenderer = (index: number, row: Row) => {
const item = row.item
return (
-
+
{item.isTeam ? (
) : (
@@ -36,7 +36,7 @@ const _itemRenderer = (index: number, row: Row) => {
{item.name}
-
+
)
}
diff --git a/shared/common-adapters/box.tsx b/shared/common-adapters/box.tsx
index 4858a2564ce9..c4c4cbb6962f 100644
--- a/shared/common-adapters/box.tsx
+++ b/shared/common-adapters/box.tsx
@@ -184,7 +184,7 @@ export const box2SharedProps = (p: Box2Props) => {
}
}
-// Shared className generator used by Box2 and ClickableBox3.
+// Shared className generator used by Box2 and ClickableBox.
export const box2ClassNames = (p: Box2Props, extra?: string): string => {
const {direction, alignItems, alignSelf, gap, gapStart, gapEnd, justifyContent, overflow} = p
const {padding, centerChildren, flex, fullHeight, fullWidth, noShrink, pointerEvents, relative, tooltip, className} = p
@@ -309,13 +309,13 @@ const nativeStyles = {
},
} as const
-export type ClickableBox3Props = Box2Props & {
+export type ClickableBoxProps = Box2Props & {
onClick?: (e?: React.SyntheticEvent) => void
onLongPress?: () => void
hitSlop?: number
}
-export const ClickableBox3 = (p: ClickableBox3Props & {ref?: React.Ref}) => {
+export const ClickableBox = (p: ClickableBoxProps & {ref?: React.Ref}) => {
const {onClick, onLongPress, hitSlop, ref, ...box2p} = p
if (!isMobile) {
diff --git a/shared/common-adapters/checkbox.tsx b/shared/common-adapters/checkbox.tsx
index 0009ffa4ffa7..4a8c4c87624e 100644
--- a/shared/common-adapters/checkbox.tsx
+++ b/shared/common-adapters/checkbox.tsx
@@ -1,4 +1,4 @@
-import {Box2, ClickableBox3} from './box'
+import {Box2, ClickableBox} from './box'
import Icon from './icon'
import Switch from '@/common-adapters/switch'
import Text from './text'
@@ -23,12 +23,12 @@ type Props = {
const CHECKBOX_SIZE = 13
const CHECKBOX_MARGIN = 8
-const Kb = {Box2, ClickableBox3, Icon, Styles, Switch, Text}
+const Kb = {Box2, ClickableBox, Icon, Styles, Switch, Text}
const Checkbox = (props: Props) => {
if (!isMobile) {
return (
- {
))}
{!!props.labelSubtitle && {props.labelSubtitle}}
-
+
)
}
diff --git a/shared/common-adapters/dropdown.tsx b/shared/common-adapters/dropdown.tsx
index 893a49746e66..700132575fcb 100644
--- a/shared/common-adapters/dropdown.tsx
+++ b/shared/common-adapters/dropdown.tsx
@@ -1,5 +1,5 @@
import type * as React from 'react'
-import {Box2, ClickableBox3} from './box'
+import {Box2, ClickableBox} from './box'
import ProgressIndicator from './progress-indicator'
import Text from './text'
import Popup from './popup'
@@ -14,7 +14,7 @@ import {useSafeAreaInsets} from './safe-area-view'
const Kb = {
Box2,
- ClickableBox3,
+ ClickableBox,
Icon,
Popup,
ProgressIndicator,
@@ -37,7 +37,7 @@ type DropdownButtonProps = {
export const DropdownButton = (props: DropdownButtonProps) => {
const {disabled, toggleOpen, style, popupAnchor, selectedBoxStyle, inline, loading, selected} = props
return (
- {
sizeType="Tiny"
style={{marginTop: isMobile ? 2 : -8}}
/>
-
+
)
}
@@ -102,7 +102,7 @@ function Dropdown(p: Props) {
>
{items.map((i: N, idx) => (
- {
evt?.stopPropagation()
@@ -117,7 +117,7 @@ function Dropdown(p: Props) {
style={Styles.collapseStyles([styles.itemClickBox, styles.itemBox, itemBoxStyle])}
>
{i}
-
+
))}
diff --git a/shared/common-adapters/floating-menu/menu-layout/index.tsx b/shared/common-adapters/floating-menu/menu-layout/index.tsx
index a39d4883aedf..b60584907879 100644
--- a/shared/common-adapters/floating-menu/menu-layout/index.tsx
+++ b/shared/common-adapters/floating-menu/menu-layout/index.tsx
@@ -2,7 +2,7 @@ import type * as React from 'react'
import type {MenuLayoutProps, MenuItem} from './index.shared'
export type {MenuItem, MenuItems, MenuLayoutProps, _InnerMenuItem} from './index.shared'
import {Box2} from '@/common-adapters/box'
-import {ClickableBox3} from '@/common-adapters/box'
+import {ClickableBox} from '@/common-adapters/box'
import Divider from '@/common-adapters/divider'
import Icon from '@/common-adapters/icon'
import IconAuto from '@/common-adapters/icon-auto'
@@ -53,7 +53,7 @@ const DesktopMenuLayout = (props: MenuLayoutProps) => {
return item.unWrapped ? (
item.view
) : (
- {
)}
{!!item.progressIndicator && }
-
+
)
}
@@ -124,7 +124,7 @@ const DesktopMenuLayout = (props: MenuLayoutProps) => {
}, [])
return (
- {
event?.stopPropagation()
}}
@@ -146,7 +146,7 @@ const DesktopMenuLayout = (props: MenuLayoutProps) => {
)}
)}
-
+
)
}
diff --git a/shared/common-adapters/index.tsx b/shared/common-adapters/index.tsx
index bdac814e91e9..02e55af1eac0 100644
--- a/shared/common-adapters/index.tsx
+++ b/shared/common-adapters/index.tsx
@@ -26,8 +26,8 @@ export {default as IconAuto} from './icon-auto'
export {default as BoxGrow, BoxGrow2} from './box-grow'
export {default as Checkbox} from './checkbox'
export {default as CheckCircle} from './check-circle'
-export {ClickableBox3} from './box'
-export type {ClickableBox3Props} from './box'
+export {ClickableBox} from './box'
+export type {ClickableBoxProps} from './box'
export {default as ConfirmModal} from './confirm-modal'
export {default as CopyText} from './copy-text'
export {default as CopyableText} from './copyable-text'
diff --git a/shared/common-adapters/list-item.tsx b/shared/common-adapters/list-item.tsx
index 2a148bdc3bad..9b165cba74c5 100644
--- a/shared/common-adapters/list-item.tsx
+++ b/shared/common-adapters/list-item.tsx
@@ -1,6 +1,6 @@
import type * as React from 'react'
import * as Styles from '@/styles'
-import {Box2, ClickableBox3} from './box'
+import {Box2, ClickableBox} from './box'
import BoxGrow from './box-grow'
import Divider from './divider'
import './list-item.css'
@@ -8,7 +8,7 @@ import './list-item.css'
const Kb = {
Box2,
BoxGrow,
- ClickableBox3,
+ ClickableBox,
Divider,
}
@@ -40,7 +40,7 @@ type Props = {
const ListItem = (props: Props) => {
if (props.type === 'Card') return
return (
- {} : undefined)} // make sure clickable box applies click styles if just onMouseDown is given.
onMouseDown={props.onMouseDown}
direction="horizontal"
@@ -106,7 +106,7 @@ const ListItem = (props: Props) => {
-
+
)
}
@@ -335,7 +335,7 @@ const getActionStyle = (props: Props) =>
])
const CardListItem = (props: Props) => (
- (
>
{props.icon && {props.icon}}
{props.body}
-
+
)
const cardStyles = Styles.styleSheetCreate(() => ({
diff --git a/shared/common-adapters/name-with-icon.tsx b/shared/common-adapters/name-with-icon.tsx
index 8008f507c10b..ee0a27d0affd 100644
--- a/shared/common-adapters/name-with-icon.tsx
+++ b/shared/common-adapters/name-with-icon.tsx
@@ -2,7 +2,7 @@ import type * as React from 'react'
import * as Styles from '@/styles'
import * as C from '@/constants'
import Avatar from './avatar'
-import {Box2, ClickableBox3} from './box'
+import {Box2, ClickableBox} from './box'
import IconAuto from './icon-auto'
import type {IconType} from './icon.constants-gen'
import Icon from './icon'
@@ -230,14 +230,14 @@ export const NameWithIcon = (props: NameWithIconProps) => {
)
return _onClickWrapper ? (
- e && _onClickWrapper(e)}
direction={props.horizontal ? 'horizontal' : 'vertical'}
alignItems="center"
style={containerStyle}
>
{children}
-
+
) : (
{
isSmall ? undefined : Styles.collapseStyles([styles.countrySelectorRowBig, styles.fakeInputBig])
}
>
- {
>
{renderCountrySelector()}
-
+
{
)
})}
{!!expandLabel && (
- setExpanded(true)} direction="vertical" style={styles.expand}>
+ setExpanded(true)} direction="vertical" style={styles.expand}>
-
+
)}
)
diff --git a/shared/common-adapters/radio-button.tsx b/shared/common-adapters/radio-button.tsx
index 4aa6ab891a6d..0eb4e4d99e03 100644
--- a/shared/common-adapters/radio-button.tsx
+++ b/shared/common-adapters/radio-button.tsx
@@ -1,5 +1,5 @@
import {View} from 'react-native'
-import {ClickableBox3} from './box'
+import {ClickableBox} from './box'
import Text from './text'
import * as Styles from '@/styles'
import './radio-button.css'
@@ -14,7 +14,7 @@ type Props = {
}
const Kb = {
- ClickableBox3,
+ ClickableBox,
Text,
}
@@ -38,7 +38,7 @@ const RadioButton = ({disabled, label, onSelect, selected, style}: Props) => {
)
}
return (
- {
) : (
label
)}
-
+
)
}
diff --git a/shared/common-adapters/search-filter.tsx b/shared/common-adapters/search-filter.tsx
index f9455c7ef64f..3fc189409d4c 100644
--- a/shared/common-adapters/search-filter.tsx
+++ b/shared/common-adapters/search-filter.tsx
@@ -1,6 +1,6 @@
import * as React from 'react'
import Animation from './animation'
-import {Box2, ClickableBox3} from './box'
+import {Box2, ClickableBox} from './box'
import Input3 from './input3'
import type {Input3Ref} from './input3.shared'
import Text from './text'
@@ -17,7 +17,7 @@ import type {MeasureRef} from './measure-ref'
const Kb = {
Animation,
Box2,
- ClickableBox3,
+ ClickableBox,
Icon,
IconAuto,
Input3,
@@ -221,18 +221,18 @@ function SearchFilter(props: Props & {ref?: React.Ref}) {
}
if (isMobile) {
return (
-
+
-
+
)
} else {
return (
- {}}
onMouseDown={cancel}
direction="vertical"
@@ -243,7 +243,7 @@ function SearchFilter(props: Props & {ref?: React.Ref}) {
sizeType={iconSizeType()}
color={iconColor()}
/>
-
+
)
}
}
@@ -263,7 +263,7 @@ function SearchFilter(props: Props & {ref?: React.Ref}) {
)
const content = isMobile ? (
- }) {
onClick={props.onClick || focus}
>
{inside}
-
+
) : (
- }) {
onClick={props.onClick || (!focused ? focus : undefined)}
>
{inside}
-
+
)
return isMobile ? (
diff --git a/shared/common-adapters/section-divider.tsx b/shared/common-adapters/section-divider.tsx
index 40e135851e1d..ddbfafeceda4 100644
--- a/shared/common-adapters/section-divider.tsx
+++ b/shared/common-adapters/section-divider.tsx
@@ -1,13 +1,13 @@
import type * as React from 'react'
import * as Styles from '@/styles'
-import {Box2, ClickableBox3} from './box'
+import {Box2, ClickableBox} from './box'
import Text from './text'
import Icon from './icon'
import ProgressIndicator from './progress-indicator'
const Kb = {
Box2,
- ClickableBox3,
+ ClickableBox,
Icon,
ProgressIndicator,
Text,
@@ -40,9 +40,9 @@ const SectionDivider = (props: Props) => {
)
return collapsible ? (
-
+
{children}
-
+
) : (
children
)
diff --git a/shared/common-adapters/switch.tsx b/shared/common-adapters/switch.tsx
index 006efc2b9966..dad7d59fbc09 100644
--- a/shared/common-adapters/switch.tsx
+++ b/shared/common-adapters/switch.tsx
@@ -1,6 +1,6 @@
import type * as React from 'react'
import * as Styles from '@/styles'
-import {Box2, ClickableBox3} from './box'
+import {Box2, ClickableBox} from './box'
import ProgressIndicator from './progress-indicator'
import Text from './text'
import SwitchToggle from './switch-toggle'
@@ -10,7 +10,7 @@ import type {TextType} from './text.shared'
const Kb = {
Box2,
- ClickableBox3,
+ ClickableBox,
ProgressIndicator,
Text,
WithTooltip,
@@ -45,9 +45,9 @@ const LabelContainer = (props: Props) =>
) : (
-
+
{props.children}
-
+
)
@@ -62,7 +62,7 @@ function Switch(props: Props & {ref?: React.Ref}) {
const {ref} = props
const content = (
<>
-
+
}) {
!!props.labelSubtitle && styles.switch,
] as const)}
/>
-
+
{!!props.gapInBetween && }
{!!props.gapSize && }
{typeof props.label === 'string' ? (
diff --git a/shared/common-adapters/tabs.tsx b/shared/common-adapters/tabs.tsx
index 64efcd101ce1..ce5ccf1a9810 100644
--- a/shared/common-adapters/tabs.tsx
+++ b/shared/common-adapters/tabs.tsx
@@ -5,13 +5,13 @@ import IconAuto from './icon-auto'
import type {IconType} from './icon.constants-gen'
import ProgressIndicator from './progress-indicator'
import Text from './text'
-import {Box2, ClickableBox3} from './box'
+import {Box2, ClickableBox} from './box'
import capitalize from 'lodash/capitalize'
const Kb = {
Badge,
Box2,
- ClickableBox3,
+ ClickableBox,
Divider,
IconAuto,
ProgressIndicator,
@@ -54,7 +54,7 @@ const Tabs = (props: Props) => (
{props.tabs.map((tab: Tab) => {
const selected = props.selectedTab === tab.title
return (
- props.onSelect(tab.title)}
key={tab.title}
direction="vertical"
@@ -70,7 +70,7 @@ const Tabs = (props: Props) => (
{!!tab.badgeNumber && }
-
+
)
})}
{props.showProgressIndicator && }
diff --git a/shared/common-adapters/with-tooltip.tsx b/shared/common-adapters/with-tooltip.tsx
index 2ca1c163ac40..42cc23491850 100644
--- a/shared/common-adapters/with-tooltip.tsx
+++ b/shared/common-adapters/with-tooltip.tsx
@@ -3,7 +3,7 @@ import * as React from 'react'
import * as Styles from '@/styles'
import {Portal} from './portal'
import {useTimeout} from './use-timers'
-import {Box2, ClickableBox3} from './box'
+import {Box2, ClickableBox} from './box'
import Toast from './toast'
import Text from './text'
import type {MeasureRef} from './measure-ref'
@@ -30,7 +30,7 @@ const IGNORE_FOR_PROFILING = false as boolean
const Kb = {
Box2,
- ClickableBox3,
+ ClickableBox,
Portal,
Text,
Toast,
@@ -162,7 +162,7 @@ function WithTooltip(p: Props) {
return (
<>
- {children}
+ {children}
{
) : null
return (
- {
{!isMobile && browseButton}
{!isMobile && clearButton}
-
+
)
}
diff --git a/shared/devices/add-device.tsx b/shared/devices/add-device.tsx
index db670c970999..358a67c59877 100644
--- a/shared/devices/add-device.tsx
+++ b/shared/devices/add-device.tsx
@@ -109,7 +109,7 @@ const deviceOptionTypeMap = {
phone: 'mobile',
} as const
const DeviceOption = ({highlight, iconNumber, onClick, type}: DeviceOptionProps) => (
-
{type === 'paper key' ? 'Create' : 'Add'} a {type === 'phone' ? 'phone or tablet' : type}
-
+
)
const styles = Kb.Styles.styleSheetCreate(() => ({
diff --git a/shared/devices/index.tsx b/shared/devices/index.tsx
index 2558d10c1e9a..638015dc0483 100644
--- a/shared/devices/index.tsx
+++ b/shared/devices/index.tsx
@@ -120,14 +120,14 @@ function ReloadableDevices() {
{isMobile ? (
- onAddDevice()} direction="horizontal" centerChildren={true} relative={true} style={styles.mobileAddHeader}>
+ onAddDevice()} direction="horizontal" centerChildren={true} relative={true} style={styles.mobileAddHeader}>
{waiting ? (
) : null}
-
+
) : null}
{showPaperKeyNudge ? onAddDevice(['paper key'])} /> : null}
@@ -179,7 +179,7 @@ const styles = Kb.Styles.styleSheetCreate(
)
const PaperKeyNudge = ({onAddDevice}: {onAddDevice: () => void}) => (
- void}) => (
{!isMobile && Create a paper key}
-
+
)
export default ReloadableDevices
diff --git a/shared/fs/browser/destination-picker.tsx b/shared/fs/browser/destination-picker.tsx
index fdf3e80584d7..39714ddff740 100644
--- a/shared/fs/browser/destination-picker.tsx
+++ b/shared/fs/browser/destination-picker.tsx
@@ -126,7 +126,7 @@ const ConnectedDestinationPicker = (ownProps: OwnProps) => {
{!!onBackUp && (
-
+
{
style={RowCommon.rowStyles.pathItemIcon}
/>
..
-
+
)}
{!!onCopyHere && (
-
+
{
{isShare ? 'Save here' : 'Copy here'}
-
+
)}
{!!onMoveHere && (
-
+
{
Move here
-
+
)}
{parentPath === FS.defaultPath ? (
@@ -198,12 +198,12 @@ const Screen = (props: OwnProps) => (
const NewFolder = (p: {onNewFolder?: () => void}) => {
const {onNewFolder} = p
return (
-
+
Create new folder
-
+
)
}
diff --git a/shared/fs/common/path-item-action/header.tsx b/shared/fs/common/path-item-action/header.tsx
index ee1e6d50dbac..1d4346bb93f5 100644
--- a/shared/fs/common/path-item-action/header.tsx
+++ b/shared/fs/common/path-item-action/header.tsx
@@ -6,7 +6,7 @@ import PathInfo from '../path-info'
export type Props = {path: T.FS.Path}
const Header = (props: Props) => (
- (
-
+
)
export default Header
diff --git a/shared/fs/common/sfmi-popup.tsx b/shared/fs/common/sfmi-popup.tsx
index 1c248df40b19..6f1938aa5458 100644
--- a/shared/fs/common/sfmi-popup.tsx
+++ b/shared/fs/common/sfmi-popup.tsx
@@ -25,7 +25,7 @@ const SFMIPopup = (props: Props) => {
return (
- e?.stopPropagation()}
@@ -51,7 +51,7 @@ const SFMIPopup = (props: Props) => {
onClick={enableDriver}
/>
-
+
)
}
diff --git a/shared/fs/top-bar/sort.tsx b/shared/fs/top-bar/sort.tsx
index e49559a2b255..ea1b701d1530 100644
--- a/shared/fs/top-bar/sort.tsx
+++ b/shared/fs/top-bar/sort.tsx
@@ -55,12 +55,12 @@ const Sort = (ownProps: OwnProps) => {
const {showPopup, popup, popupAnchor} = Kb.usePopup2(makePopup)
return shownSortSetting ? (
<>
-
+
{getTextFromSortSetting(shownSortSetting)}
-
+
{popup}
>
) : null
diff --git a/shared/git/index.tsx b/shared/git/index.tsx
index 5219bbd67bba..f86d9da8a6f0 100644
--- a/shared/git/index.tsx
+++ b/shared/git/index.tsx
@@ -194,7 +194,7 @@ const GitRoot = (ownProps: OwnProps) => {
{!!error && {error.message}}
{isMobile && (
-
+
{
fontSize={20}
/>
New encrypted git repository...
-
+
)}
-
)}
-
+
{expanded && (
? undefined
: {
content: (
-
+
Save in Files
-
+
),
}
}
diff --git a/shared/menubar/index.desktop.tsx b/shared/menubar/index.desktop.tsx
index 2023adaaa12a..24524c166e55 100644
--- a/shared/menubar/index.desktop.tsx
+++ b/shared/menubar/index.desktop.tsx
@@ -118,7 +118,7 @@ const ChatRow = (p: {conv: Conversation; httpSrvAddress: string; httpSrvToken: s
const timestamp = conv.timestamp ? TimestampUtil.formatTimeForConversationList(conv.timestamp) : ''
return (
- R.remoteDispatch(RemoteGen.createOpenChatFromWidget({conversationIDKey: conv.conversationIDKey}))}
direction="horizontal"
fullWidth={true}
@@ -166,7 +166,7 @@ const ChatRow = (p: {conv: Conversation; httpSrvAddress: string; httpSrvToken: s
)}
-
+
)
}
@@ -193,7 +193,7 @@ const ChatPreview = (p: {conversationsToSend: ReadonlyArray; convL
// Inline file updates (replaces FilesContainer + files.desktop.tsx with store-connected components)
const FileUpdate = (p: {path: T.FS.Path; uploading: boolean; onClick: () => void}) => (
- void
)}
-
+
)
const defaultNumFileOptionsShown = 3
diff --git a/shared/people/follow-notification.tsx b/shared/people/follow-notification.tsx
index 2d7107a211f2..531bc7ceb207 100644
--- a/shared/people/follow-notification.tsx
+++ b/shared/people/follow-notification.tsx
@@ -51,7 +51,7 @@ const FollowNotification = (props: Props) => {
}
return (
-
+
{
)}
-
+
)
}
diff --git a/shared/profile/add-to-team.tsx b/shared/profile/add-to-team.tsx
index c0f13276c0bd..03c06428a205 100644
--- a/shared/profile/add-to-team.tsx
+++ b/shared/profile/add-to-team.tsx
@@ -322,7 +322,7 @@ type RowProps = {
const TeamRow = (props: RowProps) => {
return (
- props.onCheck(!props.checked) : undefined}>
+ props.onCheck(!props.checked) : undefined}>
{
{!isMobile && }
-
+
)
}
diff --git a/shared/profile/edit-avatar/index.tsx b/shared/profile/edit-avatar/index.tsx
index dc790bc91597..595ae0248317 100644
--- a/shared/profile/edit-avatar/index.tsx
+++ b/shared/profile/edit-avatar/index.tsx
@@ -155,7 +155,7 @@ const DesktopEditAvatar = (_p: Props) => {
{' '}
for one.
- {
type="iconfont-camera"
/>
)}
-
+
{loading === 'loaded' ? Click to select. Scroll to zoom. : null}
@@ -308,14 +308,14 @@ const NativeAvatarUploadWrapper = (p: Props) => {
const renderImageZoomer = () => {
if (type === 'team' && !selectedImage) {
return (
-
-
+
)
}
return selectedImage ? (
diff --git a/shared/profile/generic/proofs-list.tsx b/shared/profile/generic/proofs-list.tsx
index ee20b37713ac..d451f65492c3 100644
--- a/shared/profile/generic/proofs-list.tsx
+++ b/shared/profile/generic/proofs-list.tsx
@@ -630,7 +630,7 @@ const ProviderPicker = ({
renderItem={(_: unknown, provider: Provider) => (
-
-
+
)}
/>
diff --git a/shared/profile/user/actions/index.tsx b/shared/profile/user/actions/index.tsx
index 06227bc59b13..555abbcece14 100644
--- a/shared/profile/user/actions/index.tsx
+++ b/shared/profile/user/actions/index.tsx
@@ -195,12 +195,12 @@ const DropdownButton = (p: DropdownProps) => {
const {showPopup, popup, popupAnchor} = Kb.usePopup2(makePopup)
return (
-
+
{popup}
-
+
)
}
diff --git a/shared/profile/user/friend.tsx b/shared/profile/user/friend.tsx
index 166dbb0742f7..3f6114e21200 100644
--- a/shared/profile/user/friend.tsx
+++ b/shared/profile/user/friend.tsx
@@ -25,7 +25,7 @@ const Friend = (ownProps: OwnProps) => {
: followsYou ? ('icon-follow-me-21' as const) : ('icon-following-21' as const)
return (
- {
{fullname}
-
+
)
}
diff --git a/shared/profile/user/index.tsx b/shared/profile/user/index.tsx
index 070979249ac5..851345e1eeb7 100644
--- a/shared/profile/user/index.tsx
+++ b/shared/profile/user/index.tsx
@@ -228,7 +228,7 @@ const Tabs = (p: TabsProps) => {
const onClickFollowing = () => p.onSelectTab('following')
const onClickFollowers = () => p.onSelectTab('followers')
const tab = (tab: Tab) => (
- {
{((tab === 'following' && p.loadingFollowing) || p.loadingFollowers) && (
)}
-
+
)
return (
diff --git a/shared/profile/user/teams/index.tsx b/shared/profile/user/teams/index.tsx
index 63daf3753e9c..c245d8923c83 100644
--- a/shared/profile/user/teams/index.tsx
+++ b/shared/profile/user/teams/index.tsx
@@ -72,12 +72,12 @@ const TeamShowcase = (props: TeamShowcaseProps) => {
}
const ShowcaseTeamsOffer = (p: {onEdit: () => void}) => (
-
+
{"Feature the teams you're in"}
-
+
)
const styles = Kb.Styles.styleSheetCreate(
diff --git a/shared/profile/user/teams/team-row.tsx b/shared/profile/user/teams/team-row.tsx
index 4f6a1152cdb6..3f6e05575a9f 100644
--- a/shared/profile/user/teams/team-row.tsx
+++ b/shared/profile/user/teams/team-row.tsx
@@ -12,7 +12,7 @@ type Props = {
}
const TeamRow = ({isOpen, loading = false, name, onClick, popup, popupAnchor}: Props) => (
-
+
<>
{popup}
@@ -22,7 +22,7 @@ const TeamRow = ({isOpen, loading = false, name, onClick, popup, popupAnchor}: P
{typeof isOpen === 'boolean' && }
{loading && }
-
+
)
const styles = Kb.Styles.styleSheetCreate(() => ({
diff --git a/shared/provision/code-page/container.tsx b/shared/provision/code-page/container.tsx
index e7838bf8ab10..85343515d048 100644
--- a/shared/provision/code-page/container.tsx
+++ b/shared/provision/code-page/container.tsx
@@ -214,7 +214,7 @@ const CodePageContainer = () => {
}
const heyWaitBanner = () => (
- setTroubleshooting(true)} direction="vertical" fullWidth={true}>
+ setTroubleshooting(true)} direction="vertical" fullWidth={true}>
{
]}
/>
-
+
)
const troubleshootingContent = () => (
diff --git a/shared/provision/troubleshooting.tsx b/shared/provision/troubleshooting.tsx
index 013507f39699..5f6a840acb17 100644
--- a/shared/provision/troubleshooting.tsx
+++ b/shared/provision/troubleshooting.tsx
@@ -17,7 +17,7 @@ type BigButtonProps = {
}
const BigButton = ({onClick, icon, mainText, subText, waiting}: BigButtonProps) => (
-
)}
-
+
)
const Troubleshooting = (props: Props) => {
diff --git a/shared/router-v2/header/index.desktop.tsx b/shared/router-v2/header/index.desktop.tsx
index e112e3e639c6..956ef4e7deab 100644
--- a/shared/router-v2/header/index.desktop.tsx
+++ b/shared/router-v2/header/index.desktop.tsx
@@ -79,15 +79,15 @@ const SystemButtons = ({isMaximized}: {isMaximized: boolean}) => {
}
return (
-
-
-
+ {
style={styles.appIcon}
type={isMaximized ? 'iconfont-app-un-maximize' : 'iconfont-app-maximize'}
/>
-
-
+
-
+
)
}
@@ -195,7 +195,7 @@ function DesktopHeader(p: Props) {
>
{/* TODO have headerLeft be the back button */}
{headerLeft !== null && (
-
-
+
)}
{
const menuHeader = (
-
+
{
}
/>
-
+
{
return (
<>
- {
style={styles.caret}
/>
>
-
+
{popup}
>
)
@@ -278,7 +278,7 @@ function Tab(props: TabProps) {
}
return (
-
-
+
)
}
diff --git a/shared/settings/account/email-phone-row.tsx b/shared/settings/account/email-phone-row.tsx
index bb1b04c40ed3..244775d85c50 100644
--- a/shared/settings/account/email-phone-row.tsx
+++ b/shared/settings/account/email-phone-row.tsx
@@ -147,7 +147,7 @@ const EmailPhoneRow = (p: {contactKey: string; onEmailVerificationSuccess: (emai
{!!menuItems.length && (
<>
-
{gearIconBadge}
-
+
{popup}
>
)}
diff --git a/shared/settings/feedback/index.tsx b/shared/settings/feedback/index.tsx
index 994eff357c6e..c4eb89d426d4 100644
--- a/shared/settings/feedback/index.tsx
+++ b/shared/settings/feedback/index.tsx
@@ -85,14 +85,14 @@ const Feedback = (props: Props) => {
)}
-
+
-
+
{props.loggedOut && (
diff --git a/shared/settings/files/index.tsx b/shared/settings/files/index.tsx
index dc8510d291a5..5a79b952583d 100644
--- a/shared/settings/files/index.tsx
+++ b/shared/settings/files/index.tsx
@@ -80,11 +80,11 @@ const FinderIntegration = () => {
{Platform.fileUIName} integration
{isPending && }
{driverStatus.type === T.FS.DriverStatusType.Disabled && driverStatus.kextPermissionError && (
-
+
Action needed!
-
+
)}
{driverStatus.type === T.FS.DriverStatusType.Enabled ? (
diff --git a/shared/settings/logout.tsx b/shared/settings/logout.tsx
index 68ff45edbc93..fe54dcbdfbf8 100644
--- a/shared/settings/logout.tsx
+++ b/shared/settings/logout.tsx
@@ -123,7 +123,7 @@ const LogoutContainer = () => {
{loggingOut ? (
) : (
- {
Just sign out
-
+
)}
diff --git a/shared/settings/routes.tsx b/shared/settings/routes.tsx
index 9beeba0bdcba..d7e43e756d05 100644
--- a/shared/settings/routes.tsx
+++ b/shared/settings/routes.tsx
@@ -19,7 +19,7 @@ const PushPromptSkipButton = () => {
const rejectPermissions = usePushState(s => s.dispatch.rejectPermissions)
const clearModals = C.Router2.clearModals
return (
- {
rejectPermissions()
clearModals()
@@ -29,7 +29,7 @@ const PushPromptSkipButton = () => {
Skip
-
+
)
}
diff --git a/shared/settings/sub-nav/settings-item.tsx b/shared/settings/sub-nav/settings-item.tsx
index bfb85c4897cf..5cc5ee00bafa 100644
--- a/shared/settings/sub-nav/settings-item.tsx
+++ b/shared/settings/sub-nav/settings-item.tsx
@@ -21,7 +21,7 @@ function SettingsItem(props: SettingsItemProps) {
_onClick(type)
}
return (
- 0 && (
)}
-
+
)
}
export default SettingsItem
diff --git a/shared/signup/common.tsx b/shared/signup/common.tsx
index f5e02511c918..61ad2416fccc 100644
--- a/shared/signup/common.tsx
+++ b/shared/signup/common.tsx
@@ -83,7 +83,7 @@ const Header = (props: HeaderProps) => (
)}
{props.onBack && (
-
+
(
>
Back
-
+
)}
{props.titleComponent || {props.title}}
{props.onRightAction && !!props.rightActionLabel && (
diff --git a/shared/signup/phone-number/verify-body.tsx b/shared/signup/phone-number/verify-body.tsx
index e383c263f48e..1e4e889b36ef 100644
--- a/shared/signup/phone-number/verify-body.tsx
+++ b/shared/signup/phone-number/verify-body.tsx
@@ -36,7 +36,7 @@ const VerifyBody = (props: BodyProps) => {
containerStyle={styles.inputContainer2}
inputStyle={styles.inputText2}
/>
- {
)}
-
+
)
}
diff --git a/shared/team-building/contacts.tsx b/shared/team-building/contacts.tsx
index 8d94ae68a210..e5615caa4cb7 100644
--- a/shared/team-building/contacts.tsx
+++ b/shared/team-building/contacts.tsx
@@ -144,7 +144,7 @@ export const ContactsImportButton = () => {
return null
return (
-
+
@@ -152,7 +152,7 @@ export const ContactsImportButton = () => {
Import phone contacts
-
+
)
}
diff --git a/shared/team-building/search-result/common-result.tsx b/shared/team-building/search-result/common-result.tsx
index 81362c7014bf..e53f0d23277c 100644
--- a/shared/team-building/search-result/common-result.tsx
+++ b/shared/team-building/search-result/common-result.tsx
@@ -91,7 +91,7 @@ const CommonResult = (props: CommonResultProps) => {
const onClick = getRowAction(props)
return (
- {
{/* Renders checkbox for new-chat and team-building, and chat buttons + dropdown for people search */}
{props.rightButtons ?? null}
-
+
)
}
diff --git a/shared/team-building/search-result/people-result.tsx b/shared/team-building/search-result/people-result.tsx
index 4313b1103f95..2c4e17bcd816 100644
--- a/shared/team-building/search-result/people-result.tsx
+++ b/shared/team-building/search-result/people-result.tsx
@@ -135,7 +135,7 @@ const DropdownButton = (p: DropdownProps) => {
const {showPopup, popup, popupAnchor} = Kb.usePopup2(makePopup)
return (
- {
e?.stopPropagation()
showPopup()
@@ -147,7 +147,7 @@ const DropdownButton = (p: DropdownProps) => {
{popup}
-
+
)
}
diff --git a/shared/team-building/search-result/user-result.tsx b/shared/team-building/search-result/user-result.tsx
index dc2434705d79..33fe412d3d27 100644
--- a/shared/team-building/search-result/user-result.tsx
+++ b/shared/team-building/search-result/user-result.tsx
@@ -45,14 +45,14 @@ const ActionButton = (props: {
const Icon = props.inTeam ? AlreadyAddedIconButton : AddButton
return (
-
-
+
)
}
diff --git a/shared/team-building/service-tab-bar.tsx b/shared/team-building/service-tab-bar.tsx
index 2297ab364368..51b13cfee1ae 100644
--- a/shared/team-building/service-tab-bar.tsx
+++ b/shared/team-building/service-tab-bar.tsx
@@ -120,7 +120,7 @@ const ServiceIconNative = function ServiceIcon(props: IconProps) {
})
return (
- onClick(service)} direction="vertical" relative={true}>
+ onClick(service)} direction="vertical" relative={true}>
{serviceIdToBadge(service) && (
@@ -156,7 +156,7 @@ const ServiceIconNative = function ServiceIcon(props: IconProps) {
Kb.Styles.platformStyles({isMobile: animatedTransform}),
])}
/>
-
+
)
}
@@ -282,7 +282,7 @@ const MoreNetworksButton = (props: {
ref={popupAnchor}
>
-
•••
-
+
@@ -310,7 +310,7 @@ const ServiceIconDesktop = (props: IconProps) => {
const color =
props.isActive || hover ? serviceIdToAccentColor(props.service, isDarkMode) : Kb.Styles.globalColors.black
return (
- props.onClick(props.service)}
onMouseOver={() => setHover(true)}
onMouseLeave={() => setHover(false)}
@@ -353,7 +353,7 @@ const ServiceIconDesktop = (props: IconProps) => {
props.isActive && {backgroundColor: serviceIdToAccentColor(props.service, isDarkMode)},
])}
/>
-
+
)
}
diff --git a/shared/team-building/user-bubble.tsx b/shared/team-building/user-bubble.tsx
index 8d8b46de8574..778c88b0ff08 100644
--- a/shared/team-building/user-bubble.tsx
+++ b/shared/team-building/user-bubble.tsx
@@ -50,7 +50,7 @@ const UserBubble = (props: Props) => {
}
const RemoveBubble = ({onRemove}: {onRemove: () => void}) => (
-
+
void}) => (
style={styles.removeIcon}
className="hover_color_black"
/>
-
+
)
const styles = Kb.Styles.styleSheetCreate(
diff --git a/shared/teams/add-members-wizard/confirm.tsx b/shared/teams/add-members-wizard/confirm.tsx
index d0c1b019db1b..e9f79b6a21dc 100644
--- a/shared/teams/add-members-wizard/confirm.tsx
+++ b/shared/teams/add-members-wizard/confirm.tsx
@@ -358,11 +358,11 @@ const AddingMembers = ({
/>
))}
{showDivider && (
-
+
{expanded ? 'Show less' : `+${addingMembers.length - 4} more`}
-
+
)}
{expanded &&
belowDivider.map(toAdd => (
diff --git a/shared/teams/common/channels-widget.tsx b/shared/teams/common/channels-widget.tsx
index 7f6e4e94fd9e..b89345926676 100644
--- a/shared/teams/common/channels-widget.tsx
+++ b/shared/teams/common/channels-widget.tsx
@@ -101,7 +101,7 @@ const ChannelInputMobile = (props: ChannelInputProps) => {
onAdd(channels)
}
return (
- setShowingPopup(true)} direction="vertical">
+ setShowingPopup(true)} direction="vertical">
{
hideGeneral={disableGeneral}
/>
)}
-
+
)
}
diff --git a/shared/teams/common/use-autocompleter.tsx b/shared/teams/common/use-autocompleter.tsx
index e6bff1b276b7..c2daf961db0f 100644
--- a/shared/teams/common/use-autocompleter.tsx
+++ b/shared/teams/common/use-autocompleter.tsx
@@ -35,7 +35,7 @@ function useAutocompleter(
positionFallbacks={positionFallbacks}
>
{itemsFiltered.map((item, idx) => (
- onSelect(item.value)}
onMouseOver={() => setSelected(idx)}
@@ -46,7 +46,7 @@ function useAutocompleter(
{item.label}
-
+
))}
)
diff --git a/shared/teams/emojis/add-emoji.tsx b/shared/teams/emojis/add-emoji.tsx
index be79d1ad73a6..2b3d3a7beda1 100644
--- a/shared/teams/emojis/add-emoji.tsx
+++ b/shared/teams/emojis/add-emoji.tsx
@@ -323,9 +323,9 @@ type EmojiToAddOrAddRow =
const renderRow = (_: number, item: EmojiToAddOrAddRow) =>
item.type === 'add' ? (
-
+
-
+
) : (
})
onEnterKeyDown={onEnterKeyDown}
/>
{onRemove && (
-
+
-
+
)}
{!!error && (
diff --git a/shared/teams/invite-by-contact/index.native.tsx b/shared/teams/invite-by-contact/index.native.tsx
index 491c72608445..42af98ff0562 100644
--- a/shared/teams/invite-by-contact/index.native.tsx
+++ b/shared/teams/invite-by-contact/index.native.tsx
@@ -105,12 +105,12 @@ export const InviteByContact = (props: InviteByContactProps) => {
position="bottom center"
disabledRoles={{owner: 'Cannot invite an owner via email.'}}
/>
- setRolePickerOpen(true)} style={styles.rolePickerBox}>
+ setRolePickerOpen(true)} style={styles.rolePickerBox}>
Users will be invited to {props.teamName} as
{' ' + props.selectedRole + 's'}.
-
+
void; onJoinTeam: () => void; empty: boolean}) => (
- void; onJoinTeam: () => void
-
-
+ void; onJoinTeam: () => void
>
Join a team
-
+
{props.empty && !isMobile && (
Keybase team chats are encrypted – unlike Slack – and work for any size group, from casual friends to
@@ -90,10 +90,10 @@ const SortHeader = ({onChangeSort, sortOrder}: {onChangeSort: Props['onChangeSor
const {popup, showPopup, popupAnchor} = Kb.usePopup2(makePopup)
return (
-
+
{sortOrderToTitle[sortOrder]}
-
+
{popup}
)
diff --git a/shared/teams/main/team-row.tsx b/shared/teams/main/team-row.tsx
index 2ac14a130891..69c3d52b8659 100644
--- a/shared/teams/main/team-row.tsx
+++ b/shared/teams/main/team-row.tsx
@@ -61,7 +61,7 @@ const TeamRow = function TeamRow(props: Props) {
if (isMobile) {
return (
<>
-
+
@@ -109,7 +109,7 @@ const TeamRow = function TeamRow(props: Props) {
ref={popupAnchor}
/>
-
+
{popup}
>
)
@@ -117,7 +117,7 @@ const TeamRow = function TeamRow(props: Props) {
return (
<>
-
+
@@ -170,7 +170,7 @@ const TeamRow = function TeamRow(props: Props) {
ref={popupAnchor}
/>
-
+
{popup}
>
)
diff --git a/shared/teams/role-picker.tsx b/shared/teams/role-picker.tsx
index 28870a5a887e..a485139e0755 100644
--- a/shared/teams/role-picker.tsx
+++ b/shared/teams/role-picker.tsx
@@ -117,7 +117,7 @@ const RoleRowWrapper = (props: RoleRowWrapperProps) => {
...(isMobile ? {} : {height: selected ? 160 : 42}),
}
return (
-
+
{
onSelect={onSelect}
disabledReason={disabledReason}
/>
-
+
)
}
diff --git a/shared/teams/team/member/add-to-channels.tsx b/shared/teams/team/member/add-to-channels.tsx
index 057afd789873..0358de6ee049 100644
--- a/shared/teams/team/member/add-to-channels.tsx
+++ b/shared/teams/team/member/add-to-channels.tsx
@@ -495,7 +495,7 @@ const ChannelRow = function ChannelRow(p: ChannelRowProps) {
}
return isMobile ? (
-
)}
-
+
) : (
{
open={open}
disabledRoles={disabledRoles}
/>
- setExpanded(!expanded)} direction="vertical" fullWidth={true} style={!expanded && styles.rowCollapsedFixedHeight}>
+ setExpanded(!expanded)} direction="vertical" fullWidth={true} style={!expanded && styles.rowCollapsedFixedHeight}>
{props.idx !== 0 && }
@@ -750,7 +750,7 @@ const NodeInRow = (props: NodeInRowProps) => {
)}
-
+
>
)
}
diff --git a/shared/teams/team/settings-tab/channel-popup.tsx b/shared/teams/team/settings-tab/channel-popup.tsx
index dbde462ee100..8d4771a5d80d 100644
--- a/shared/teams/team/settings-tab/channel-popup.tsx
+++ b/shared/teams/team/settings-tab/channel-popup.tsx
@@ -81,7 +81,7 @@ const ChannelPopup = (props: Props) => {
const disabled = disabledChannels?.some(c => c.conversationIDKey === channel.conversationIDKey)
const onClick = disabled ? undefined : () => onSelect(channel)
return (
-
+
#{channel.channelname}
@@ -92,7 +92,7 @@ const ChannelPopup = (props: Props) => {
}
disabled={disabled}
/>
-
+
)
}}
/>
diff --git a/shared/teams/team/settings-tab/retention/index.tsx b/shared/teams/team/settings-tab/retention/index.tsx
index df5cf98d7342..90d9f40ab7d8 100644
--- a/shared/teams/team/settings-tab/retention/index.tsx
+++ b/shared/teams/team/settings-tab/retention/index.tsx
@@ -165,7 +165,7 @@ const RetentionPicker = (p: Props) => {
Message deletion
- {
{policyToLabel(policy, teamPolicy)}
-
+
{policyIsExploding && (
Participants will see their message explode.
diff --git a/shared/tracker/assertion.tsx b/shared/tracker/assertion.tsx
index 56efb5defba4..4104121d6d64 100644
--- a/shared/tracker/assertion.tsx
+++ b/shared/tracker/assertion.tsx
@@ -224,7 +224,7 @@ const Assertion = (ownProps: OwnProps) => {
)}
- {
) : (
)}
-
+
{!!metas.length && (
@@ -434,9 +434,9 @@ const AssertionSiteIcon = (p: SIProps) => {
child = {child}
}
return (
-
+
{child}
-
+
)
}