-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: merges branch 'devel' into 169-buscar-usuario-pelo-email-registro
- Loading branch information
Showing
35 changed files
with
1,514 additions
and
99 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from "react"; | ||
import PocketDepartment from "../PocketDepartment"; | ||
import { StyledListGroup } from "./style"; | ||
|
||
const Departments = ({ departments, searchTerm }) => { | ||
return ( | ||
<StyledListGroup> | ||
{departments | ||
.filter((val) => { | ||
if (val === "") { | ||
return val; | ||
} else if ( | ||
val.name.toLowerCase().includes(searchTerm.toLowerCase()) | ||
) { | ||
return val; | ||
} | ||
}) | ||
.map((post) => ( | ||
<PocketDepartment key={post.id} name={post.name} /> | ||
))} | ||
</StyledListGroup> | ||
); | ||
}; | ||
|
||
export default Departments; |
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,52 @@ | ||
import styled from "styled-components"; | ||
|
||
export const StyledListGroup = styled.ul` | ||
display: contents; | ||
list-style-type: none; | ||
`; | ||
export const StyledListGroupItem = styled.li``; | ||
|
||
export const styles = {}; | ||
|
||
export const StyledBigDiv = styled.div` | ||
width: 100%; | ||
height: 5rem; | ||
border-radius: 15px; | ||
background: #ffffff; | ||
border: 2px solid #000000; | ||
display: inline-block; | ||
align-items: center; | ||
.registerNumber { | ||
width: 16%; | ||
} | ||
.city { | ||
width: 15%; | ||
} | ||
.state { | ||
width: 7%; | ||
} | ||
.requester { | ||
width: 18%; | ||
} | ||
.inclusionDate { | ||
width: 12%; | ||
} | ||
.seiNumber { | ||
width: 15%; | ||
} | ||
.tag { | ||
width: 10%; | ||
} | ||
.extra { | ||
width: 7%; | ||
padding-left: 1.8rem; | ||
} | ||
button { | ||
border: none; | ||
background: transparent; | ||
cursor: pointer; | ||
font-family: Montserrat; | ||
font-style: normal; | ||
font-size: 26px; | ||
} | ||
`; |
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,11 @@ | ||
import React from "react"; | ||
|
||
import { StyledBigDiv } from "./styles"; | ||
|
||
const PocketDepartment = ({ name }) => ( | ||
<StyledBigDiv> | ||
<button class="registerNumber">{name}</button> | ||
</StyledBigDiv> | ||
); | ||
|
||
export default PocketDepartment; |
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,24 @@ | ||
import styled from "styled-components"; | ||
|
||
export const styles = {}; | ||
|
||
export const StyledBigDiv = styled.div` | ||
width: 100%; | ||
height: 5rem; | ||
border-radius: 15px; | ||
background: #ffffff; | ||
border: 2px solid #000000; | ||
display: inline-block; | ||
align-items: center; | ||
.registerNumber { | ||
width: 100%; | ||
} | ||
button { | ||
border: none; | ||
background: transparent; | ||
cursor: pointer; | ||
font-family: Montserrat; | ||
font-style: normal; | ||
font-size: 26px; | ||
} | ||
`; |
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,11 @@ | ||
import React from "react"; | ||
import { StyledBigDiv } from "./styles"; | ||
|
||
const PocketSection = ({ name }) => ( | ||
// Show all sections per name | ||
<StyledBigDiv> | ||
<button class="registerNumber">{name}</button> | ||
</StyledBigDiv> | ||
); | ||
|
||
export default PocketSection; |
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,24 @@ | ||
import styled from "styled-components"; | ||
|
||
export const styles = {}; | ||
|
||
export const StyledBigDiv = styled.div` | ||
width: 100%; | ||
height: 5rem; | ||
border-radius: 15px; | ||
background: #ffffff; | ||
border: 2px solid #000000; | ||
display: inline-block; | ||
align-items: center; | ||
.registerNumber { | ||
width: 100%; | ||
} | ||
button { | ||
border: none; | ||
background: transparent; | ||
cursor: pointer; | ||
font-family: Montserrat; | ||
font-style: normal; | ||
font-size: 26px; | ||
} | ||
`; |
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.