Skip to content

Commit

Permalink
fix comments, delete index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
BelousSofiya committed Oct 17, 2023
1 parent 8d3cfc3 commit d65e2a7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 95 deletions.
Original file line number Diff line number Diff line change
@@ -1,60 +1,3 @@
/* .header-search-box {
display: flex;
align-items: center;
flex-shrink: 0;
width: 264px;
border-radius: 2px;
border: 1px solid #D9D9D9;
background: #FFF;
}
.header-search-form {
display: flex;
padding: 4px 12px;
align-items: flex-start;
gap: 10px;
flex: 1 0 0;
}
.header-search-form__input {
display: flex;
padding: 1px 0px;
align-items: flex-start;
gap: 10px;
flex: 1 0 0;
border: none;
}
.header-search-form__addon {
display: flex;
padding: 9px;
width: 14px;
height: 14px;
justify-content: center;
align-items: center;
gap: 8px;
align-self: stretch;
border-left: 1px solid #D9D9D9;;
}
.header-search-form__input::placeholder {
color: rgba(0, 0, 0, 0.25);
font-feature-settings: 'calt' off;
font-family: Inter;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 20px;
letter-spacing: -0.14px;
}
textarea:focus, .header-search-form__input:focus{
border: none;
outline: none;
} */

.header-search-box {
display: flex;
align-items: center;
Expand Down
17 changes: 0 additions & 17 deletions FrontEnd/src/components/SearchPage/index.js

This file was deleted.

24 changes: 11 additions & 13 deletions FrontEnd/src/components/SearchPage/search_field/SearchResults.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,18 @@ const SearchResults = ({ results, displayedResults, isAuthorized }) => {
return (
<div>
{!error && (
<>
<div className="new-companies-block">
<div className="row">
{displayedResults.map((result, resultIndex) => (
<div key={resultIndex} className="col-md-4">
<MainCompanies
companyData={result}
isAuthorized={isAuthorized}
/>
</div>
))}
</div>
<div className="new-companies-block">
<div className="row">
{displayedResults.map((result, resultIndex) => (
<div key={resultIndex} className="col-md-4">
<MainCompanies
companyData={result}
isAuthorized={isAuthorized}
/>
</div>
))}
</div>
</>
</div>
)}
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,8 @@ const MainCompanies = ({ companyData, isAuthorized }) => {
const currentDate = new Date();
const currentYear = currentDate.getFullYear();

// those variables we would use for axios to get data from beckend
// get saved list code here
const usersSavedList = [];

// add company to saved list code here
// const addToSavedList = (profile_id) => {};

// del company from saved list code here
// const delFromSavedList = (profile_id) => {};

return (
<div className="product-card">
<div className="product-card__block">
Expand Down

0 comments on commit d65e2a7

Please sign in to comment.