interface/profile: hide 'log out of all'

Non-functional. Requires 'all' in post body, and hasn't been tested.
This commit is contained in:
Matilde Park 2020-08-26 20:24:48 -04:00
parent e63c050a6e
commit ff40759e82

View File

@ -17,9 +17,9 @@ export default function SecuritySettings({ api }: SecuritySettingsProps) {
Log out of this session Log out of this session
</Box> </Box>
<Box fontSize={0} mt={2} color="gray"> <Box fontSize={0} mt={2} color="gray">
You will be logged out of your Urbit on this browser You will be logged out of your Urbit on this browser.
<form method="post" action="/~/logout"> <form method="post" action="/~/logout">
<Button narrow mt={2} border={1}> <Button narrow mt='4' border={1}>
Logout Logout
</Button> </Button>
</form> </form>
@ -27,15 +27,15 @@ export default function SecuritySettings({ api }: SecuritySettingsProps) {
<Box color="black" fontSize={0} mt={4} fontWeight={700}> <Box color="black" fontSize={0} mt={4} fontWeight={700}>
Log out of all sessions Log out of all sessions
</Box> </Box>
{/* Restore after testing sending 'all' in POST body
<Box fontSize={0} mt={2} color="gray"> <Box fontSize={0} mt={2} color="gray">
You will be logged out of all browsers that have currently logged into You will be logged out of all browsers that have currently logged into your Urbit.
your Urbit
<form method="post" action="/~/logout"> <form method="post" action="/~/logout">
<Button error narrow mt={2} border={1}> <Button error narrow mt={4} border={1}>
Logout Everywhere Logout
</Button> </Button>
</form> </form>
</Box> </Box> */}
</Box> </Box>
); );
} }