Skip to content

Commit

Permalink
PGOV-314: No vars needed in vars.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrienne committed Dec 18, 2024
1 parent 284257c commit fbf03fc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 28 deletions.
54 changes: 27 additions & 27 deletions src/frontend/components/view--goal-search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ interface ViewGoalSearch {
}

export default function GoalsSearchView({ filters, goals, total, description }: ViewGoalSearch) {
const [fulltext, setFulltext] = useState(filters[0]?.value ? filters[0].value : "")
// const [facets] = useState([...Object.keys(filters[1].options)])
const [fulltext, setFulltext] = useState(filters[0].value ? filters[0].value : "")
const [facets] = useState([...Object.keys(filters[1].options)])
const [search, setSearch] = useState(false);
const [offset, setOffset] = useState(9);
const [activeTopics, setActiveTopics] = useState([])
Expand Down Expand Up @@ -124,31 +124,31 @@ export default function GoalsSearchView({ filters, goals, total, description }:
setFulltext={setFulltext}
handleSearch={handleSearch}
/>
{/*<ul className="add-list-reset grid-row flex-justify-center margin-bottom-205">*/}
{/* {facets.length ? (*/}
{/* facets.map((topic) => (*/}
{/* <li*/}
{/* className="margin-bottom-05"*/}
{/* key={topic.replace( /\s/g, '')}*/}
{/* >*/}
{/* <ViewGoalSearchFacet*/}
{/* topic={topic}*/}
{/* notDisabledTopics={notDisabledTopics}*/}
{/* activeTopics={activeTopics}*/}
{/* updateTopicFilters={updateTopicFilters}*/}
{/* />*/}
{/* </li>*/}
{/* ))*/}
{/* ) : (*/}
{/* <div className="usa-alert usa-alert--warning usa-alert--slim">*/}
{/* <div className="usa-alert__body">*/}
{/* <p className="usa-alert__text">*/}
{/* No facets found.*/}
{/* </p>*/}
{/* </div>*/}
{/* </div>*/}
{/* )}*/}
{/*</ul>*/}
<ul className="add-list-reset grid-row flex-justify-center margin-bottom-205">
{facets.length ? (
facets.map((topic) => (
<li
className="margin-bottom-05"
key={topic.replace( /\s/g, '')}
>
<ViewGoalSearchFacet
topic={topic}
notDisabledTopics={notDisabledTopics}
activeTopics={activeTopics}
updateTopicFilters={updateTopicFilters}
/>
</li>
))
) : (
<div className="usa-alert usa-alert--warning usa-alert--slim">
<div className="usa-alert__body">
<p className="usa-alert__text">
No facets found.
</p>
</div>
</div>
)}
</ul>
{filteredGoals?.length ? (
<ul className="usa-card-group">
{filteredGoals.map((goal) => (
Expand Down
1 change: 0 additions & 1 deletion vars.yml

This file was deleted.

0 comments on commit fbf03fc

Please sign in to comment.