-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #238 from yalla-coop/lead-add-trainer
[local lead] add trainer to the group
- Loading branch information
Showing
20 changed files
with
731 additions
and
100 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// reset the store data | ||
|
||
import * as types from '../constants/actionTypes'; | ||
|
||
export const resetgroup = () => { | ||
return { | ||
type: types.RESET_GROUPS_STATE, | ||
}; | ||
}; | ||
|
||
export const resetUniqueEmail = () => { | ||
return { | ||
type: types.RESET_UNIQUE_EMAIL, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
v2/client/src/components/pages/AddTrainer/AddTrainer.style.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import styled from 'styled-components'; | ||
import { Form as AntForm, Input as AntInput, Select as AntSelect } from 'antd'; | ||
|
||
const { Item: AntItem } = AntForm; | ||
|
||
export const Wrapper = styled.div``; | ||
|
||
export const ContentWrapper = styled.div` | ||
max-width: 25rem; | ||
margin: 0 auto; | ||
padding: 5rem 15px; | ||
`; | ||
|
||
export const Form = styled(AntForm)` | ||
margin: 0 auto; | ||
text-align: center; | ||
padding: 20px 0; | ||
`; | ||
|
||
export const Input = styled(AntInput)` | ||
width: 90%; | ||
margin: 0 auto; | ||
height: 50px; | ||
`; | ||
|
||
export const Select = styled(AntSelect)` | ||
width: 90%; | ||
`; | ||
|
||
export const Item = styled(AntItem)` | ||
width: 90%; | ||
margin: 0 auto; | ||
margin-bottom: 20px; | ||
text-align: center; | ||
`; | ||
|
||
export const Bold = styled.span` | ||
font-weight: 900; | ||
text-transform: capitalize; | ||
`; | ||
|
||
export const Paragraph = styled.p``; |
Oops, something went wrong.