Skip to content

Commit

Permalink
Add gif file and minor improvements.
Browse files Browse the repository at this point in the history
Signed-off-by: Aliwoto <[email protected]>
  • Loading branch information
ALiwoto committed Aug 20, 2024
1 parent d3a1e82 commit 32989e3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
Binary file added public/examsphere-intro.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/components/containers/createUserContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import styled from "styled-components";

const CreateUserContainer = styled.div`
height: 100%;
display: flex;
justify-content: center;
background-color: #f5f5f5;
Expand Down
36 changes: 18 additions & 18 deletions src/pages/createUserPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,24 +88,6 @@ const CreateUserPage: React.FC = () => {
value={createUserData.password ?? ''}
onChange={(e) => { handleInputChange(e as any) }}
required />
<SelectMenu
labelText='Role'
labelId='role-select-label'
name={CurrentAppTranslation.role}
value={createUserData.role ?? UserRole.UserRoleStudent}
onChange={handleInputChange}
options={Object.values(UserRole).filter(role => apiClient.canCreateTargetRole(role))}
/>
<FormControlLabel
control={
<Checkbox
checked={createUserData.setup_completed ?? true}
onChange={(e) => setUserInfo({ ...createUserData, setup_completed: e.target.checked })}
color="primary"
/>
}
label="Send email confirmation to user"
/>
<TextField
style={{
width: '100%',
Expand All @@ -130,6 +112,24 @@ const CreateUserPage: React.FC = () => {
value={createUserData.user_address ?? ''}
onChange={(e) => { handleInputChange(e as any) }}
required={false} />
<SelectMenu
labelText='Role'
labelId='role-select-label'
name={CurrentAppTranslation.role}
value={createUserData.role ?? UserRole.UserRoleStudent}
onChange={handleInputChange}
options={Object.values(UserRole).filter(role => apiClient.canCreateTargetRole(role))}
/>
<FormControlLabel
control={
<Checkbox
checked={createUserData.setup_completed ?? true}
onChange={(e) => setUserInfo({ ...createUserData, setup_completed: e.target.checked })}
color="primary"
/>
}
label="Send email confirmation to user"
/>
<SubmitButton type="submit">{CurrentAppTranslation.CreateUserButtonText}</SubmitButton>
</CreateUserForm>
</CreateUserContainer>
Expand Down

0 comments on commit 32989e3

Please sign in to comment.