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
import React, { Fragment } from 'react'; | |
import { withFormik, FormikProps, FieldArray } from 'formik'; | |
import * as Yup from 'yup'; | |
import styled from 'styled-components'; | |
import { History } from 'history'; | |
import AddPollMutation from './AddPollMutation'; | |
import withToast from '../HOC/withToast'; | |
import Header from '../common/Header/Header'; |
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
import AcademicSubscription from '../models/AcademicSubscription'; | |
class AcademicController { | |
async store(req, res) { | |
const { originalname: name, filename: path } = req.file; | |
const academicSubscription = await AcademicSubscription.create({ | |
...req.body, | |
name, | |
path, |
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
const Post = require("../models/Post"); | |
const index = async (req, res) => { | |
const posts = await Post.find(); | |
return res.json(posts); | |
}; | |
const store = async (req, res) => { | |
const { originalname: name, size, key, location: url = "" } = req.file; |
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
import React from 'react'; | |
import styled, { css } from 'styled-components'; | |
export default function StatusProgress({ type }) { | |
return ( | |
<Line type={type}> | |
<Circle type={type} /> | |
<Circle type={type} /> | |
<Circle type={type} /> | |
<Circle type={type} /> |
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
import styled, { css } from 'styled-components'; | |
import PerfectScrollBar from 'react-perfect-scrollbar'; | |
import { lighten } from 'polished'; | |
export const Container = styled.div` | |
position: relative; | |
`; | |
export const Badge = styled.button` | |
background: none; |
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
const account = require('./account/graphql') | |
const user = require('./user/graphql') | |
const prepared = prepareGraphql([account, user]) | |
const { | |
schema, | |
resolvers | |
} = prepared | |
const typeDefs = gql`${schema}` |
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
import React from 'react'; | |
import { FieldProps, getIn } from 'formik'; | |
import { Chip, TextField } from '@material-ui/core'; | |
import Autocomplete from '@material-ui/lab/Autocomplete'; | |
import useStyles from './styles'; | |
export default function InputMultiValue({ field, form, ...props }: FieldProps) { | |
const classes = useStyles({}); |
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
import UserProvider from '../models/UserProvider'; | |
import Provider from '../models/Provider'; | |
import MedicalExam from '../models/MedicalExam'; | |
class MedicalExamController { | |
async store(req, res) { | |
const { provider } = await UserProvider.findOne({ | |
where: { user_id: req.userId }, | |
include: [ | |
{ |
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
it('should be able to update account', async () => { | |
const queryAccountSettings = ` | |
query ($subdomain: String!) { | |
getAccountSettingsBySubDomain(subdomain: $subdomain) { | |
id | |
} | |
} | |
`; | |
const variablesAccountSettings = { |
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
import * as React from 'react'; | |
import MUIOutlinedInput from '@material-ui/core/OutlinedInput'; | |
import FormControl from '@material-ui/core/FormControl'; | |
import styled, { css } from 'styled-components'; | |
import { connect, FormikContext, getIn } from 'formik'; | |
import FormHelperText from '@material-ui/core/FormHelperText'; | |
import MaskedInput from 'react-text-mask'; | |
import InputAdornment from '@material-ui/core/InputAdornment'; | |
import Visibility from '@material-ui/icons/Visibility'; | |
import VisibilityOff from '@material-ui/icons/VisibilityOff'; |
OlderNewer