Skip to content

Commit

Permalink
Merge pull request #1618 from dedis/work-fe1-mgreub-release-remove_mo…
Browse files Browse the repository at this point in the history
…ck_server_button

Removes the mock server button
  • Loading branch information
MeKHell authored Jun 1, 2023
2 parents b3daf02 + 2fb62c6 commit 421d1e8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 85 deletions.
2 changes: 1 addition & 1 deletion fe1-web/src/features/home/screens/ConnectConfirm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const ConnectConfirm = () => {
const dispatch = useDispatch();

const laoIdRouteParam = route.params?.laoId || '';
const url = route.params?.serverUrl || 'ws://localhost:9000/organizer/client';
const url = route.params?.serverUrl || 'wss://127.0.0.1:9000/client';
const [serverUrl, setServerUrl] = useState(url);
const [laoIdInput, setLaoIdInput] = useState(laoIdRouteParam);

Expand Down
8 changes: 5 additions & 3 deletions fe1-web/src/features/home/screens/Launch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ const Launch = () => {
const dispatch = useDispatch();

const [inputLaoName, setInputLaoName] = useState('');
const [inputAddress, setInputAddress] = useState('ws://127.0.0.1:9000/organizer/client');

const [inputAddress, setInputAddress] = useState('wss://127.0.0.1:9000/client');
// release : disable connect to test lao
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const connectToTestLao = HomeHooks.useConnectToTestLao();
const requestCreateLao = HomeHooks.useRequestCreateLao();

Expand Down Expand Up @@ -102,9 +103,10 @@ const Launch = () => {
{STRINGS.launch_button_launch}
</PoPTextButton>

{/* release: Disable the MockServer
<PoPTextButton onPress={connectToTestLao}>
[TEST] Connect to LocalMockServer.ts (use &apos;npm run startServer&apos;)
</PoPTextButton>
</PoPTextButton>} */}
</View>
</View>
</ScreenWrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ exports[`ConnectNavigation renders correctly 1`] = `
},
]
}
value="ws://localhost:9000/organizer/client"
value="wss://127.0.0.1:9000/client"
/>
</View>
<Text
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ exports[`Launch renders correctly 1`] = `
]
}
testID="launch_address_selector"
value="ws://127.0.0.1:9000/organizer/client"
value="wss://127.0.0.1:9000/client"
/>
</View>
</View>
Expand Down Expand Up @@ -581,85 +581,6 @@ exports[`Launch renders correctly 1`] = `
</View>
</RNGestureHandlerButton>
</View>
<View
accessible={true}
collapsable={false}
focusable={true}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
{
"marginBottom": 16,
}
}
>
<RNGestureHandlerButton
collapsable={false}
delayLongPress={600}
enabled={true}
exclusive={true}
handlerTag={4}
handlerType="NativeViewGestureHandler"
onGestureEvent={[Function]}
onGestureHandlerEvent={[Function]}
onGestureHandlerStateChange={[Function]}
onHandlerStateChange={[Function]}
rippleColor={0}
touchSoundDisabled={false}
>
<View
accessible={true}
collapsable={false}
style={
{
"opacity": 1,
}
}
>
<View
style={
[
{
"backgroundColor": "#3742fa",
"borderColor": "#3742fa",
"borderRadius": 8,
"borderWidth": 1,
"padding": 8,
},
]
}
>
<Text
style={
[
{
"color": "#000",
"fontSize": 20,
"lineHeight": 26,
"textAlign": "left",
},
{
"textAlign": "center",
},
{
"color": "#fff",
},
]
}
>
[TEST] Connect to LocalMockServer.ts (use 'npm run startServer')
</Text>
</View>
</View>
</RNGestureHandlerButton>
</View>
</View>
</View>
</View>
Expand Down

0 comments on commit 421d1e8

Please sign in to comment.