mirror of
https://github.com/tooot-app/app
synced 2025-03-26 08:20:03 +01:00
Fix issues
This commit is contained in:
parent
46b63b33d6
commit
9658b0cb71
@ -20,7 +20,8 @@
|
||||
"ios": "react-native run-ios",
|
||||
"app:build": "bundle exec fastlane build",
|
||||
"test": "jest --watchAll",
|
||||
"release": "scripts/release.sh"
|
||||
"release": "scripts/release.sh",
|
||||
"clean": "react-native-clean-project"
|
||||
},
|
||||
"dependencies": {
|
||||
"@expo/react-native-action-sheet": "^3.9.0",
|
||||
@ -114,6 +115,7 @@
|
||||
"jest": "^26.6.3",
|
||||
"jest-expo": "^40.0.2",
|
||||
"nock": "^13.0.11",
|
||||
"react-native-clean-project": "^3.6.3",
|
||||
"react-navigation": "^4.4.4",
|
||||
"react-navigation-stack": "^2.10.4",
|
||||
"react-test-renderer": "^17.0.1",
|
||||
|
@ -116,7 +116,6 @@ const ComponentEmojis: React.FC<Props> = ({
|
||||
|
||||
const addEmoji = useCallback(
|
||||
(emojiShortcode: string) => {
|
||||
console.log(selectionRange.current)
|
||||
if (value?.length) {
|
||||
const contentFront = value.slice(0, selectionRange.current?.start)
|
||||
const contentRear = value.slice(selectionRange.current?.end)
|
||||
|
@ -84,7 +84,7 @@ const ComposePoll: React.FC = () => {
|
||||
<View style={styles.controlAmount}>
|
||||
<View style={styles.firstButton}>
|
||||
<Button
|
||||
{...((total > 2)
|
||||
{...(total > 2
|
||||
? {
|
||||
accessibilityLabel: t(
|
||||
'content.root.footer.poll.quantity.reduce.accessibilityLabel',
|
||||
@ -139,6 +139,7 @@ const ComposePoll: React.FC = () => {
|
||||
disabled={!(total < 4)}
|
||||
/>
|
||||
</View>
|
||||
<View style={styles.controlOptions}>
|
||||
<MenuRow
|
||||
title={t('content.root.footer.poll.multiple.heading')}
|
||||
content={
|
||||
@ -212,6 +213,7 @@ const ComposePoll: React.FC = () => {
|
||||
iconBack='ChevronRight'
|
||||
/>
|
||||
</View>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
||||
@ -247,6 +249,9 @@ const styles = StyleSheet.create({
|
||||
justifyContent: 'flex-end',
|
||||
marginRight: StyleConstants.Spacing.M
|
||||
},
|
||||
controlOptions: {
|
||||
paddingHorizontal: StyleConstants.Spacing.Global.PagePadding
|
||||
},
|
||||
firstButton: {
|
||||
marginRight: StyleConstants.Spacing.S
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { MenuRow } from '@components/Menu'
|
||||
import { MenuContainer, MenuRow } from '@components/Menu'
|
||||
import { StackScreenProps } from '@react-navigation/stack'
|
||||
import { useListsQuery } from '@utils/queryHooks/lists'
|
||||
import React from 'react'
|
||||
@ -10,11 +10,12 @@ const TabMeLists: React.FC<StackScreenProps<
|
||||
const { data } = useListsQuery({})
|
||||
|
||||
return (
|
||||
<>
|
||||
<MenuContainer>
|
||||
{data?.map((d: Mastodon.List, i: number) => (
|
||||
<MenuRow
|
||||
key={i}
|
||||
iconFront='List'
|
||||
iconBack='ChevronRight'
|
||||
title={d.title}
|
||||
onPress={() =>
|
||||
navigation.navigate('Tab-Me-Lists-List', {
|
||||
@ -24,7 +25,7 @@ const TabMeLists: React.FC<StackScreenProps<
|
||||
}
|
||||
/>
|
||||
))}
|
||||
</>
|
||||
</MenuContainer>
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -8731,6 +8731,11 @@ react-native-blurhash@^1.1.4:
|
||||
resolved "https://registry.yarnpkg.com/react-native-blurhash/-/react-native-blurhash-1.1.4.tgz#820afd0ef1cea3b1d322d0448f92964286b85843"
|
||||
integrity sha512-lQFDVzrRGU0r3kC7I66MEiGKlzMeRVUm5Jt50rGZnXkm+kLK+LQDOwqEGxxn2Y2OMoDylzrccdX7mP9bf5BnLA==
|
||||
|
||||
react-native-clean-project@^3.6.3:
|
||||
version "3.6.3"
|
||||
resolved "https://registry.yarnpkg.com/react-native-clean-project/-/react-native-clean-project-3.6.3.tgz#ad43b8e1491512f285b7f455ac56db3328b5a65f"
|
||||
integrity sha512-sBbv+Zl05O9LfQqamLu2Crb//W/d8+l59TICF8nKxQ0nJsvear06a1CB2+FaO3rCrPNHiSjDDNXZ/D6muHTUkw==
|
||||
|
||||
react-native-codegen@^0.0.6:
|
||||
version "0.0.6"
|
||||
resolved "https://registry.yarnpkg.com/react-native-codegen/-/react-native-codegen-0.0.6.tgz#b3173faa879cf71bfade8d030f9c4698388f6909"
|
||||
|
Loading…
x
Reference in New Issue
Block a user