修复编辑空间文案兼容性问题;更新版本号到1.4.5

This commit is contained in:
yezian 2024-05-17 18:51:41 +08:00
parent 968ff19fbf
commit a9b694bce8
3 changed files with 10 additions and 4 deletions

View File

@ -2,7 +2,7 @@
"expo": {
"name": "铁粉空间",
"slug": "ironfans",
"version": "1.4.4",
"version": "1.4.5",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {

View File

@ -27,7 +27,11 @@ export default function EditSpacePost({ navigation, route }) {
const tailwind = useTailwind();
const insets = useSafeAreaInsets();
const [content, setContent] = useState(data.text);
const [content, setContent] = useState(
data?.paid_text
? data.text.slice(0, data.text.length - data.paid_text.length)
: data.text
);
const [isSubmitting, setIsSubmitting] = useState(false);
//
@ -62,7 +66,9 @@ export default function EditSpacePost({ navigation, route }) {
);
//
const [paidText, setPaidText] = useState(data?.paid_text);
const [paidText, setPaidText] = useState(
data?.paid_text ? data.paid_text.substring(1) : data?.paid_text
);
//
const handleSavePaymentSetting = () => {

View File

@ -142,7 +142,7 @@ export default function PostPurchasers({ navigation, route }) {
renderItem={renderItem}
initialNumToRender={12}
onEndReached={() => getData()}
ListEmptyComponent={<Empty type="friendship" />}
ListEmptyComponent={<Empty type="nodata" />}
/>
</View>
</View>