Skip to content

Commit

Permalink
chore: run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexogamer committed Jan 13, 2025
1 parent 139fa94 commit 32b47e0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
7 changes: 6 additions & 1 deletion src/components/common/MarkdownView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,12 @@ const spoilerRule = {

const isInList = hasParents(parent, 'list_item');
return (
<View key={node.key} style={{...styles.code_inline_container, ...(isInList && {transform: []})}}>
<View
key={node.key}
style={{
...styles.code_inline_container,
...(isInList && {transform: []}),
}}>
<Text style={{...inheritedStyles, ...styles.code_inline}}>
{node.content}
</Text>
Expand Down
31 changes: 16 additions & 15 deletions src/components/common/settings/sections/app/AppInfoSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,19 @@ const AppIcon = getBundleId().match('debug') ? DebugIcon : ReleaseIcon;

export const AppInfoSection = () => {
const {currentTheme} = useContext(ThemeContext);
const reactNativeVersion = useMemo(() => Platform.OS === 'web'
? dependencies['react-native'].replace('^', '')
: `${Platform.constants.reactNativeVersion.major}.${
Platform.constants.reactNativeVersion.minor
}.${Platform.constants.reactNativeVersion.patch}${
Platform.constants.reactNativeVersion.prerelease
? `-${Platform.constants.reactNativeVersion.prerelease}`
: ''
}`, []);
const reactNativeVersion = useMemo(
() =>
Platform.OS === 'web'
? dependencies['react-native'].replace('^', '')
: `${Platform.constants.reactNativeVersion.major}.${
Platform.constants.reactNativeVersion.minor
}.${Platform.constants.reactNativeVersion.patch}${
Platform.constants.reactNativeVersion.prerelease
? `-${Platform.constants.reactNativeVersion.prerelease}`
: ''
}`,
[],
);

return (
<View
Expand All @@ -42,17 +46,14 @@ export const AppInfoSection = () => {
<Text type={'h1'}>RVMob v{app.version}</Text>
<Text>
Powered by{' '}
<Link link={'https://reactnative.dev'} label={'React Native'} /> v{reactNativeVersion}
<Link link={'https://reactnative.dev'} label={'React Native'} /> v
{reactNativeVersion}
{' and '}
<Link
link={'https://github.com/rexogamer/revolt.js'}
label={'revolt.js'}
/>{' '}
v
{dependencies['revolt.js'].replace(
'npm:@rexovolt/revolt.js@^',
'',
)}
v{dependencies['revolt.js'].replace('npm:@rexovolt/revolt.js@^', '')}
</Text>
<Text>
Made by{' '}
Expand Down

0 comments on commit 32b47e0

Please sign in to comment.