Skip to content

Commit

Permalink
Home desktop styles and input search styles
Browse files Browse the repository at this point in the history
  • Loading branch information
AChapeton committed Mar 22, 2023
1 parent 8597caf commit 682e81a
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/assets/fi_trash-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions src/modules/ApplicationsTable/columns.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { format } from "date-fns";
import { NavLink } from "react-router-dom";
import trashIcon from "../../assets/fi_trash-2.svg";

const columnsHR = [
{
Expand Down Expand Up @@ -42,7 +43,7 @@ const columnsHR = [
//Moves to confirmation delete page who receives row's data
selector: (row) => (
<NavLink to="/confirm_delete_app" state={row}>
Delete
<img src={trashIcon} alt="Trash icon" />
</NavLink>
),
},
Expand Down Expand Up @@ -84,7 +85,9 @@ const columnsEmployee = [
name: "Actions",
//Moves to confirmation delete page who receives row's data
selector: (row) => (
<button onClick={() => handleDelete(row)}>Delete</button>
<NavLink to="/confirm_delete_app" state={row}>
<img src={trashIcon} alt="Trash icon" />
</NavLink>
),
},
];
Expand Down
3 changes: 3 additions & 0 deletions src/modules/ApplicationsTable/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useFetchUserApps } from "../../hooks/useObtainUserApps";
import { useSearch } from "../../hooks/useSearch";
import { columnsHR, columnsEmployee } from "./columns";
import DataTable from "react-data-table-component";
import styles from "./styles.module.scss";

const ApplicationsTable = () => {
//Calls logged user data
Expand Down Expand Up @@ -35,6 +36,8 @@ const ApplicationsTable = () => {
name="searchValue"
id="searchValue"
onChange={handleSearch}
className={styles.application__input_search}
placeholder="Search"
/>
<DataTable
columns={
Expand Down
18 changes: 18 additions & 0 deletions src/modules/ApplicationsTable/styles.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@import "../../styles/variables.scss";
@import "../../styles/mixins.scss";

.application {
&__input {
&_search {
background-color: var(--white);
border: 1px solid var(--gray);
padding: 15px;
margin-bottom: 33px;
border-radius: 10px;
color: var(--grayText);
font-weight: 400;
font-size: 14px;
line-height: 17px;
}
}
}
4 changes: 4 additions & 0 deletions src/pages/HomePage/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
display: flex;
flex-direction: column;
padding: 60px 16px;
@include breakpoint(extra-large) {
max-width: 1200px;
margin: 0 auto;
}

&__header {
display: flex;
Expand Down
1 change: 1 addition & 0 deletions src/styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

//Colors
--blueButton: #0779be;
--grayText: #8692A6
--blue: #007aff;
--gray: #cfcfcf;
--black: #000000;
Expand Down

0 comments on commit 682e81a

Please sign in to comment.