frontend client for gemstone. decentralised workplace app

refactor: use pressable instead

serenity 83da8218 5ee5d17f

Changed files
+3 -3
src
components
Chat
+3 -3
src/components/Chat/index.tsx
···
import { useCurrentPalette } from "@/providers/ThemeProvider";
import { ArrowUp, Dot, Hash } from "lucide-react-native";
import { useState } from "react";
-
import { View, TextInput, TouchableOpacity, FlatList } from "react-native";
export const Chat = ({ channelAtUri }: { channelAtUri: AtUri }) => {
const [inputText, setInputText] = useState("");
···
// eslint-disable-next-line @typescript-eslint/no-deprecated -- can't get it working with the new prop.
blurOnSubmit={false}
/>
-
<TouchableOpacity
style={{
backgroundColor: inputText.trim()
? semantic.primary
···
disabled={!isConnected}
>
<ArrowUp height={20} width={20} />
-
</TouchableOpacity>
</View>
</View>
);
···
import { useCurrentPalette } from "@/providers/ThemeProvider";
import { ArrowUp, Dot, Hash } from "lucide-react-native";
import { useState } from "react";
+
import { View, TextInput, FlatList, Pressable } from "react-native";
export const Chat = ({ channelAtUri }: { channelAtUri: AtUri }) => {
const [inputText, setInputText] = useState("");
···
// eslint-disable-next-line @typescript-eslint/no-deprecated -- can't get it working with the new prop.
blurOnSubmit={false}
/>
+
<Pressable
style={{
backgroundColor: inputText.trim()
? semantic.primary
···
disabled={!isConnected}
>
<ArrowUp height={20} width={20} />
+
</Pressable>
</View>
</View>
);