Skip to content
Snippets Groups Projects
Unverified Commit 9abe7fa2 authored by Jed Fox's avatar Jed Fox
Browse files

Add “Stop using a server” button

parent 598f63ff
No related branches found
No related tags found
No related merge requests found
......@@ -129,26 +129,32 @@ export default function ConfigServer() {
)}
</form>
{currentUrl == null && (
<View
style={{
marginTop: 15,
flexDirection: 'row',
justifyContent: 'center'
}}
>
<Button
bare
style={{ color: colors.n4, marginRight: 15 }}
onClick={onSameDomain}
>
Use {window.location.origin.replace(/https?:\/\//, '')}
</Button>
<View
style={{
marginTop: 15,
flexDirection: 'row',
justifyContent: 'center'
}}
>
{currentUrl ? (
<Button bare style={{ color: colors.n4 }} onClick={onSkip}>
Don't use a server
Stop using a server
</Button>
</View>
)}
) : (
<>
<Button
bare
style={{ color: colors.n4, marginRight: 15 }}
onClick={onSameDomain}
>
Use {window.location.origin.replace(/https?:\/\//, '')}
</Button>
<Button bare style={{ color: colors.n4 }} onClick={onSkip}>
Don't use a server
</Button>
</>
)}
</View>
</View>
</>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment