-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adicionando request para listagem de médicos na agenda
- Loading branch information
1 parent
a385021
commit 88f8147
Showing
21 changed files
with
566 additions
and
169 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
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
180 changes: 145 additions & 35 deletions
180
src/modules/secretary/components/Schedule/CreateAppointmentModal/index.tsx
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
31 changes: 31 additions & 0 deletions
31
src/modules/secretary/components/Schedule/CreateAppointmentModal/interfaces.ts
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,31 @@ | ||
export interface IPatientData { | ||
id: string; | ||
name: string; | ||
email: string; | ||
phone: string; | ||
date_of_birth: string; | ||
gender: string; | ||
skin_color: string; | ||
naturalness: string; | ||
marital_status: string; | ||
ssn: string; | ||
degree_of_instuction: string; | ||
profession: string; | ||
health_insurance: string; | ||
zip_code: string; | ||
address: string; | ||
complement: string; | ||
address_number: number; | ||
neighborhood: string; | ||
city: string; | ||
fu: string; | ||
avatar: null; | ||
clinic_id: string; | ||
created_at: string; | ||
updated_at: string; | ||
} | ||
|
||
export interface ICreateAppointmentModal { | ||
doctorId: string; | ||
doctorName: string; | ||
} |
84 changes: 80 additions & 4 deletions
84
src/modules/secretary/components/Schedule/CreateAppointmentModal/styles.ts
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 |
---|---|---|
@@ -1,13 +1,89 @@ | ||
import { AutoComplete } from 'antd'; | ||
import styled from 'styled-components'; | ||
import styled, { css } from 'styled-components'; | ||
|
||
interface ITextFieldWrapperProps { | ||
row?: boolean; | ||
} | ||
|
||
interface ITextFieldProps { | ||
hasError: boolean; | ||
label: string; | ||
} | ||
|
||
export const TextFieldWrapper = styled.div<ITextFieldWrapperProps>` | ||
width: 100%; | ||
${props => | ||
props.row && | ||
css` | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
div { | ||
width: 47.5%; | ||
} | ||
`} | ||
`; | ||
|
||
export const Container = styled.div` | ||
width: 100%; | ||
padding: 40px; | ||
padding: 40px 80px; | ||
> .ant-select { | ||
width: 100% !important; | ||
} | ||
${TextFieldWrapper + TextFieldWrapper} { | ||
margin-top: 30px; | ||
} | ||
`; | ||
|
||
export const ButtonWrapper = styled.div` | ||
width: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
margin-top: 50px; | ||
`; | ||
|
||
export const NameTextField = styled(AutoComplete)``; | ||
export const TextField = styled.input<ITextFieldProps>` | ||
width: 600px; | ||
height: 60px; | ||
box-shadow: 0px 0px 20px #eceff929; | ||
border: 1px solid #b5bcc7; | ||
border-radius: 10px; | ||
background: #f4f5fa; | ||
padding: 0 20px; | ||
font-size: 18px; | ||
font-weight: 600; | ||
transition: border-color 0.2s; | ||
${props => | ||
props.hasError && | ||
css` | ||
border: 1px solid #fa7070; | ||
`} | ||
&::placeholder { | ||
color: #b5bcc7; | ||
font-weight: 400; | ||
} | ||
&:hover { | ||
border-color: #7081fa; | ||
} | ||
@media (max-width: 640px) { | ||
width: 100%; | ||
} | ||
@media (max-width: 520px) { | ||
height: 55px; | ||
font-size: 16px; | ||
padding: 0 16px; | ||
} | ||
`; |
Oops, something went wrong.