diff --git a/src/components/Header/Center.tsx b/src/components/Header/Center.tsx
index 5b8656d3..bd868a3d 100644
--- a/src/components/Header/Center.tsx
+++ b/src/components/Header/Center.tsx
@@ -1,5 +1,4 @@
import CustomText from '@components/Text'
-import { StyleConstants } from '@utils/styles/constants'
import { useTheme } from '@utils/styles/ThemeManager'
import React from 'react'
@@ -17,9 +16,9 @@ const HeaderCenter = React.memo(
)
diff --git a/src/components/Instance/Info.tsx b/src/components/Instance/Info.tsx
index cc985bd5..70d91f21 100644
--- a/src/components/Instance/Info.tsx
+++ b/src/components/Instance/Info.tsx
@@ -32,10 +32,10 @@ const InstanceInfo = React.memo(
{content ? (
diff --git a/src/components/Parse/Emojis.tsx b/src/components/Parse/Emojis.tsx
index 58e905b5..b09f6776 100644
--- a/src/components/Parse/Emojis.tsx
+++ b/src/components/Parse/Emojis.tsx
@@ -46,8 +46,7 @@ const ParseEmojis = React.memo(
text: {
color: colors.primaryDefault,
fontSize: adaptedFontsize,
- lineHeight: adaptedLineheight,
- ...(fontBold && { fontWeight: StyleConstants.Font.Weight.Bold })
+ lineHeight: adaptedLineheight
},
image: {
width: adaptedFontsize,
@@ -58,7 +57,10 @@ const ParseEmojis = React.memo(
}, [theme, adaptiveFontsize])
return (
-
+
{emojis ? (
content
.split(regexEmoji)
diff --git a/src/components/Text.tsx b/src/components/Text.tsx
index ec6faa2d..00ac88c2 100644
--- a/src/components/Text.tsx
+++ b/src/components/Text.tsx
@@ -23,7 +23,7 @@ const CustomText: React.FC = ({
style,
fontStyle,
fontSize,
- fontWeight = 'Normal',
+ fontWeight,
lineHeight,
...rest
}) => {
@@ -46,9 +46,11 @@ const CustomText: React.FC = ({
})
},
{
- fontWeight: boldTextEnabled
- ? BoldMapping[fontWeight]
- : StyleConstants.Font.Weight[fontWeight]
+ fontWeight: fontWeight
+ ? boldTextEnabled
+ ? BoldMapping[fontWeight]
+ : StyleConstants.Font.Weight[fontWeight]
+ : undefined
}
]}
{...rest}
diff --git a/src/components/Timeline/Shared/Actions.tsx b/src/components/Timeline/Shared/Actions.tsx
index 21668903..51c65848 100644
--- a/src/components/Timeline/Shared/Actions.tsx
+++ b/src/components/Timeline/Shared/Actions.tsx
@@ -207,7 +207,7 @@ const TimelineActions: React.FC = ({
= ({
style={styles.action}
onPress={onPressReblog}
children={childrenReblog}
- disabled={
- status.visibility === 'private' || status.visibility === 'direct'
- }
+ disabled={status.visibility === 'direct'}
/>
{
numberOfLines={2}
style={{
marginBottom: StyleConstants.Spacing.XS,
- fontWeight: StyleConstants.Font.Weight.Bold,
color: colors.primaryDefault
}}
+ fontWeight='Bold'
testID='title'
>
{card.title}
diff --git a/src/screens/Compose/EditAttachment/Root.tsx b/src/screens/Compose/EditAttachment/Root.tsx
index 855b3cec..bff60bd9 100644
--- a/src/screens/Compose/EditAttachment/Root.tsx
+++ b/src/screens/Compose/EditAttachment/Root.tsx
@@ -64,10 +64,8 @@ const ComposeEditAttachmentRoot: React.FC = ({ index }) => {
{t('content.editAttachment.content.altText.heading')}
diff --git a/src/screens/Compose/Root/Actions.tsx b/src/screens/Compose/Root/Actions.tsx
index 29bd4ff9..347afbac 100644
--- a/src/screens/Compose/Root/Actions.tsx
+++ b/src/screens/Compose/Root/Actions.tsx
@@ -2,7 +2,6 @@ import analytics from '@components/analytics'
import Icon from '@components/Icon'
import { useActionSheet } from '@expo/react-native-action-sheet'
import { getInstanceConfigurationStatusMaxAttachments } from '@utils/slices/instancesSlice'
-import { StyleConstants } from '@utils/styles/constants'
import layoutAnimation from '@utils/styles/layoutAnimation'
import { useTheme } from '@utils/styles/ThemeManager'
import React, { useCallback, useContext, useMemo } from 'react'
@@ -175,13 +174,15 @@ const ComposeActions: React.FC = () => {
return (
{t(`me.fontSize.sizes.${mapFontsizeToName(size)}`)}
diff --git a/src/screens/Tabs/Shared/Root.tsx b/src/screens/Tabs/Shared/Root.tsx
index 976c36dd..776bfcf0 100644
--- a/src/screens/Tabs/Shared/Root.tsx
+++ b/src/screens/Tabs/Shared/Root.tsx
@@ -73,10 +73,8 @@ const TabSharedRoot = ({
/>,
]}
/>
diff --git a/src/screens/Tabs/Shared/Search.tsx b/src/screens/Tabs/Shared/Search.tsx
index e80ab1f6..fd5d885c 100644
--- a/src/screens/Tabs/Shared/Search.tsx
+++ b/src/screens/Tabs/Shared/Search.tsx
@@ -92,11 +92,7 @@ const TabSharedSearch: React.FC<
- )
+ bold:
}}
/>
@@ -154,10 +150,10 @@ const TabSharedSearch: React.FC<
{translation}
@@ -182,11 +178,7 @@ const TabSharedSearch: React.FC<
i18nKey='screenTabs:shared.search.notFound'
values={{ searchTerm: text, type: translation }}
components={{
- bold: (
-
- )
+ bold:
}}
/>