Fix prettier problems
This commit is contained in:
parent
8f48cda6b7
commit
115fb7f9a3
@ -82,18 +82,21 @@ export const ListPortals = ({navigation}: IListPortalsDTO) => {
|
|||||||
const onPress = (namePortal: string) => navigation.navigate(namePortal);
|
const onPress = (namePortal: string) => navigation.navigate(namePortal);
|
||||||
|
|
||||||
const onPressTextCreateDemoServer = async () => {
|
const onPressTextCreateDemoServer = async () => {
|
||||||
const nameDemoServer = "Demo Server";
|
const nameDemoServer = 'Demo Server';
|
||||||
const urlDemoServer = "https://bigbluebutton.org"
|
const urlDemoServer = 'https://demo-ios.bigbluebutton.org';
|
||||||
|
|
||||||
const createDemoServerOrError = await new_portal_name_and_url(nameDemoServer, urlDemoServer)
|
const createDemoServerOrError = await new_portal_name_and_url(
|
||||||
console.log(createDemoServerOrError)
|
nameDemoServer,
|
||||||
|
urlDemoServer,
|
||||||
|
);
|
||||||
|
console.log(createDemoServerOrError);
|
||||||
if (createDemoServerOrError) {
|
if (createDemoServerOrError) {
|
||||||
setPortals(createDemoServerOrError);
|
setPortals(createDemoServerOrError);
|
||||||
navigation.navigate(nameDemoServer);
|
navigation.navigate(nameDemoServer);
|
||||||
} else {
|
} else {
|
||||||
console.log("error when go create demo server")
|
console.log('error when go create demo server');
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
const Item = ({namePortal, url}: IItem) => (
|
const Item = ({namePortal, url}: IItem) => (
|
||||||
<WrapperItemListText onPress={() => onPress(namePortal)}>
|
<WrapperItemListText onPress={() => onPress(namePortal)}>
|
||||||
@ -166,7 +169,9 @@ export const ListPortals = ({navigation}: IListPortalsDTO) => {
|
|||||||
</TextWithoutPortal>
|
</TextWithoutPortal>
|
||||||
<TouchableOpacity onPress={() => onPressTextCreateDemoServer()}>
|
<TouchableOpacity onPress={() => onPressTextCreateDemoServer()}>
|
||||||
<TextWithoutPortal color={true}>
|
<TextWithoutPortal color={true}>
|
||||||
{i18next.t('mobileApp.portals.list.empty.orUseOurDemoServer.label')}
|
{i18next.t(
|
||||||
|
'mobileApp.portals.list.empty.orUseOurDemoServer.label',
|
||||||
|
)}
|
||||||
</TextWithoutPortal>
|
</TextWithoutPortal>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
</>
|
</>
|
||||||
|
Loading…
Reference in New Issue
Block a user