-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ✨ Criação da tela de confirmação de chamado
- Loading branch information
Showing
35 changed files
with
594 additions
and
447 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
export default function ConfirmDetailsPage() { | ||
return ( | ||
<div> | ||
<h1>ConfirmDetailsPage</h1> | ||
</div> | ||
); | ||
import { ConfirmDetailsPage } from "@/screens/abrir-chamado/confirmar-chamado"; | ||
|
||
export default function ConfirmDetails() { | ||
return <ConfirmDetailsPage />; | ||
} |
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,5 @@ | ||
import { IssuePage, IssuePageProps } from "@/screens"; | ||
|
||
export default function Issue({ params }: { params: IssuePageProps }) { | ||
return <IssuePage id={params.id} />; | ||
} |
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 |
---|---|---|
@@ -1,28 +1,28 @@ | ||
import { Fieldset, Legend, LegendText } from "./styles"; | ||
|
||
export type FieldsetProps = { | ||
children: React.ReactNode; | ||
labelText: string; | ||
width?: string; | ||
height?: string; | ||
children: React.ReactNode; | ||
labelText: string; | ||
width?: string; | ||
height?: string; | ||
color?: string; | ||
}; | ||
|
||
const CustomFieldset = ({ | ||
children, | ||
labelText, | ||
height, | ||
width, | ||
children, | ||
labelText, | ||
height, | ||
width, | ||
color | ||
}: FieldsetProps) => { | ||
return ( | ||
<Fieldset | ||
width={width} | ||
height={height}> | ||
<Legend> | ||
<LegendText>{labelText}</LegendText> | ||
</Legend> | ||
{children} | ||
</Fieldset> | ||
); | ||
return ( | ||
<Fieldset width={width} height={height} color={color}> | ||
<Legend> | ||
<LegendText>{labelText}</LegendText> | ||
</Legend> | ||
{children} | ||
</Fieldset> | ||
); | ||
}; | ||
|
||
export { CustomFieldset }; |
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,35 +1,44 @@ | ||
import styled from "styled-components"; | ||
|
||
export const Fieldset = styled.fieldset<{ width?: string; height?: string }>` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
padding: 4px 12px; | ||
width: ${({ width }) => width ?? "fit-content"}; | ||
height: ${({ height }) => height ?? "fit-content"}; | ||
border-radius: 4px; | ||
border: 1px solid ${({ theme }) => theme.colors.neutral["15"]}; | ||
flex: none; | ||
order: 0; | ||
align-self: stretch; | ||
flex-grow: 0; | ||
background-color: none; | ||
export const Fieldset = styled.fieldset<{ | ||
width?: string; | ||
height?: string; | ||
color?: string; | ||
}>` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
justify-content: center; | ||
padding: 12px; | ||
width: ${({ width }) => width || "fit-content"}; | ||
height: ${({ height }) => height || "fit-content"}; | ||
border-radius: 4px; | ||
border: 1px solid ${({ theme, color }) => color || theme.colors.neutral["15"]}; | ||
flex: none; | ||
order: 0; | ||
align-self: stretch; | ||
flex-grow: 0; | ||
background-color: none; | ||
overflow-x: hidden; | ||
overflow-y: auto; | ||
text-overflow: ellipsis; | ||
word-break: break-word; | ||
`; | ||
|
||
export const Legend = styled.legend` | ||
padding: 0px 4px 0px 4px; | ||
padding: 0px 4px 0px 4px; | ||
`; | ||
|
||
export const LegendText = styled.span` | ||
font-style: normal; | ||
font-weight: 400; | ||
font-size: 12px; | ||
line-height: 16px; | ||
font-style: normal; | ||
font-weight: 400; | ||
font-size: 12px; | ||
line-height: 16px; | ||
letter-spacing: 0.4px; | ||
letter-spacing: 0.4px; | ||
color: #2b4417; | ||
flex: none; | ||
order: 0; | ||
flex-grow: 0; | ||
color: #2b4417; | ||
flex: none; | ||
order: 0; | ||
flex-grow: 0; | ||
`; |
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
Oops, something went wrong.