-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Auth forms feat: Prettier feat: additiona scripts fix: AppButton refactor: AppIcon with additional icons
- Loading branch information
Showing
55 changed files
with
1,749 additions
and
1,077 deletions.
There are no files selected for viewing
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,12 @@ | ||
module.exports = { | ||
printWidth: 120, // max 120 chars in line, code is easy to read | ||
useTabs: false, // use spaces instead of tabs | ||
tabWidth: 2, // "visual width" of of the "tab" | ||
trailingComma: 'es5', // add trailing commas in objects, arrays, etc. | ||
semi: true, // add ; when needed | ||
singleQuote: true, // '' for stings instead of "" | ||
bracketSpacing: true, // import { some } ... instead of import {some} ... | ||
arrowParens: 'always', // braces even for single param in arrow functions (a) => { } | ||
jsxSingleQuote: false, // "" for react props, like in html | ||
jsxBracketSameLine: false, // pretty JSX | ||
}; |
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
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
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,32 @@ | ||
import { ReactNode, FormHTMLAttributes } from 'react'; | ||
import { Grid } from '@material-ui/core'; | ||
import { Theme, makeStyles } from '@material-ui/core/styles'; | ||
import { formStyle } from '../../utils/style'; | ||
|
||
export const useStyles = makeStyles((theme: Theme) => ({ | ||
formBody: { | ||
...formStyle(theme), | ||
}, | ||
})); | ||
|
||
interface Props extends FormHTMLAttributes<HTMLFormElement> { | ||
children: ReactNode; | ||
} | ||
|
||
/** | ||
* Application styled Form container | ||
*/ | ||
const AppForm: React.FC<Props> = ({ children, ...resOfProps }) => { | ||
const classes = useStyles(); | ||
return ( | ||
<form {...resOfProps}> | ||
<Grid container direction="column" alignItems="center"> | ||
<Grid item className={classes.formBody}> | ||
{children} | ||
</Grid> | ||
</Grid> | ||
</form> | ||
); | ||
}; | ||
|
||
export default AppForm; |
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,3 @@ | ||
import AppForm from './AppForm'; | ||
|
||
export { AppForm as default, AppForm }; |
Oops, something went wrong.