bug fixed complated
This commit is contained in:
@@ -185,9 +185,11 @@ export default function CreateAdsScreens() {
|
||||
onSuccess: async (res, variables) => {
|
||||
if (variables.paymentType === 'payme') {
|
||||
await Linking.openURL(res.data.url);
|
||||
router.push('/(dashboard)/announcements');
|
||||
bottomSheetModalRef.current?.dismiss();
|
||||
router.push('/profile/my-ads');
|
||||
} else {
|
||||
router.push('/(dashboard)/announcements');
|
||||
bottomSheetModalRef.current?.dismiss();
|
||||
router.push('/profile/my-ads')
|
||||
}
|
||||
},
|
||||
onError: (err: AxiosError) => {
|
||||
|
||||
@@ -234,10 +234,10 @@ const StepThree = forwardRef(({ formData, updateForm, data }: StepProps, ref) =>
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
|
||||
<View style={{ flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center' }}>
|
||||
<Text style={[styles.sectionTitle, { color: theme.text }]}>
|
||||
{t('Reklama joylashtirish kompaniyasi')}
|
||||
</Text>
|
||||
<Text style={[styles.sectionTitle, { color: theme.text }]}>
|
||||
{t('Reklama joylashtirish kompaniyasi')}
|
||||
</Text>
|
||||
<View style={{ flexDirection: 'column', justifyContent: 'space-between', alignItems: 'flex-end', marginBottom: 10 }}>
|
||||
<TouchableOpacity
|
||||
style={[
|
||||
styles.selectAllButton,
|
||||
@@ -330,7 +330,7 @@ const styles = StyleSheet.create({
|
||||
marginBottom: 12,
|
||||
},
|
||||
pickerText: { fontSize: 16 },
|
||||
sectionTitle: { fontSize: 16, fontWeight: '700', marginVertical: 12 },
|
||||
sectionTitle: { fontSize: 16, fontWeight: '700', marginVertical: 12, },
|
||||
companyItem: {
|
||||
width: 55,
|
||||
height: 55,
|
||||
|
||||
@@ -39,11 +39,14 @@ export default function EServicesCategoryScreen() {
|
||||
|
||||
const handleOpenBrowser = async (fileUrl: string) => {
|
||||
try {
|
||||
await WebBrowser.openBrowserAsync(fileUrl);
|
||||
await WebBrowser.openBrowserAsync(fileUrl, {
|
||||
dismissButtonStyle: 'close',
|
||||
presentationStyle: WebBrowser.WebBrowserPresentationStyle.FULL_SCREEN,
|
||||
});
|
||||
} catch (error) {
|
||||
Toast.error(t("Xatolik yuz berdi"));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
const onRefresh = async () => {
|
||||
setRefreshing(true);
|
||||
|
||||
Reference in New Issue
Block a user