-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5146f2e
commit 9f32867
Showing
26 changed files
with
168 additions
and
131 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
REACT_APP_API_PATH=http://localhost:3000/ | ||
# REACT_APP_API_PATH=https://br-ipti-beneficiarios.azurewebsites.net/ | ||
# REACT_APP_API_PATH=http://localhost:3000/ | ||
REACT_APP_API_PATH=https://br-ipti-beneficiarios.azurewebsites.net/ |
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,16 +1,40 @@ | ||
import { ReactNode } from "react"; | ||
import { Container, Padding } from "../../Styles/styles" | ||
import { MouseEventHandler, ReactNode } from "react"; | ||
import { Column, Container, Padding, Row } from "../../Styles/styles"; | ||
import { Button } from "primereact/button"; | ||
|
||
const ContentPage = ({ description, title, children }: { title: string, description: string, children: ReactNode }) => { | ||
return ( | ||
<Container> | ||
<h1>{title}</h1> | ||
<Padding padding="8px" /> | ||
<p>{description}</p> | ||
<Padding padding="8px" /> | ||
{children} | ||
</Container> | ||
) | ||
} | ||
const ContentPage = ({ | ||
description, | ||
title, | ||
children, | ||
addButton, | ||
onClick, labelButton, | ||
permissionButton | ||
}: { | ||
title: string; | ||
description: string; | ||
children: ReactNode; | ||
addButton?: boolean, | ||
permissionButton?: boolean, | ||
labelButton?: string, | ||
onClick?: MouseEventHandler<HTMLButtonElement> | undefined | ||
}) => { | ||
return ( | ||
<Container> | ||
<Row id="space-between"> | ||
<Column> | ||
<h1>{title}</h1> | ||
<Padding padding="4px" /> | ||
<p>{description}</p> | ||
</Column> | ||
<Column id="center"> | ||
{(addButton && permissionButton) && <Button style={{height: "42px"}} label={labelButton ?? "Adicionar"} onClick={onClick} icon={"pi pi-plus"} />} | ||
</Column> | ||
</Row> | ||
<Padding padding="4px" /> | ||
|
||
export default ContentPage; | ||
{children} | ||
</Container> | ||
); | ||
}; | ||
|
||
export default ContentPage; |
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
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
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
Oops, something went wrong.