Skip to content

Commit

Permalink
feat: clean up signup page text + ui
Browse files Browse the repository at this point in the history
  • Loading branch information
jbcl-io committed Apr 27, 2021
1 parent 9cf2e8e commit a02c37e
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions src/pages/Signup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,6 @@ const Signup = () => {
{({ handleSubmit, handleChange, handleBlur, values, isSubmitting, errors, touched }) => (
<React.Fragment>
<form onSubmit={handleSubmit} autoComplete='off'>
<Typography variant='body2' color='textSecondary'>
Slater Notes is a privacy-focused notes platform therefore we do not collect any
information that may personally identify you. That includes your email address.
</Typography>

<TextField
name='username'
label='Username'
Expand All @@ -182,12 +177,6 @@ const Signup = () => {

<Divider />

<Typography variant='body2' color='textSecondary'>
Your notes are end-to-end encrypted with your password. If you forget your
password, there is no way to recover your notes. We recommend storing your
password in a password manager.
</Typography>

<TextField
type='password'
name='password'
Expand Down Expand Up @@ -221,6 +210,11 @@ const Signup = () => {
errors.password2.charAt(0).toUpperCase() + errors.password2.slice(1)
}
/>
<Typography variant='body2' color='textSecondary'>
Your notes are end-to-end encrypted with your password. If you forget your
password, there is no way to recover your notes. We recommend storing your
password in a password manager.
</Typography>

<Divider />

Expand Down Expand Up @@ -368,28 +362,31 @@ const useStyles = makeStyles({
},
});

const Accordion = withStyles({
const Accordion = withStyles((theme) => ({
root: {
color: 'inherit',
border: '1px solid rgba(0, 0, 0, .125)',
borderRadius: theme.shape.borderRadius,
boxShadow: 'none',

'&:before': {
display: 'none',
},
'&$expanded': {
margin: 'auto',
},
},
})(MuiAccordion);
}))(MuiAccordion);

const AccordionSummary = withStyles((theme) => ({
root: {
color: theme.palette.text.secondary,
backgroundColor: theme.palette.background.default,
borderBottom: '1px solid rgba(0, 0, 0, .125)',
backgroundColor: 'transparent',
marginBottom: -1,
minHeight: 56,

'&$expanded': {
borderBottom: '1px solid rgba(0, 0, 0, .125)',
minHeight: 56,
},
},
Expand Down

0 comments on commit a02c37e

Please sign in to comment.