Skip to content

Commit

Permalink
update prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherChudzicki committed Jul 7, 2023
1 parent 083bccb commit 0cc98be
Show file tree
Hide file tree
Showing 4 changed files with 470 additions and 555 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"homepage": "https://github.com/mitodl/course-search-utils#readme",
"dependencies": {
"bodybuilder": "^2.5.0",
"prettier-eslint-cli": "^7.1.0",
"query-string": "^6.13.1",
"ramda": "^0.27.1"
},
Expand Down Expand Up @@ -62,21 +63,20 @@
"eslint-plugin-mocha": "6.x",
"eslint-plugin-react": "7.x",
"eslint-plugin-react-hooks": "^4.6.0",
"history-v4": "npm:history@^4.9",
"history": "^5.3.0",
"history-v4": "npm:history@^4.9",
"jest": "^29.0.3",
"jest-environment-jsdom": "^29.0.3",
"jest-fetch-mock": "^3.0.3",
"prettier-eslint-cli": "^5.x",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"ts-node": "^10.9.1",
"typescript": "^4.8.3"
},
"peerDependencies": {
"react": "^16.13.1",
"@types/history": "^4.9",
"history": "^4.9 || ^5.0.0",
"@types/history": "^4.9"
"react": "^16.13.1"
},
"peerDependenciesMeta": {
"history": {
Expand Down
10 changes: 2 additions & 8 deletions src/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,8 @@ function FacetTestComponent(props: any) {
}

function TestComponent(props: any) {
const {
runSearch,
clearSearch,
facets,
loaded,
searchPageSize,
history
} = props
const { runSearch, clearSearch, facets, loaded, searchPageSize, history } =
props

const {
facetOptions,
Expand Down
9 changes: 4 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,10 @@ export const useCourseSearch = (
updateUI
} = seachUI
const { activeFacets, sort, ui } = searchParams
const activeFacetsAndSort = useMemo(() => ({ activeFacets, sort, ui }), [
activeFacets,
sort,
ui
])
const activeFacetsAndSort = useMemo(
() => ({ activeFacets, sort, ui }),
[activeFacets, sort, ui]
)
const facetOptions = useFacetOptions(aggregations, activeFacets)

const internalRunSearch = useCallback(
Expand Down
Loading

0 comments on commit 0cc98be

Please sign in to comment.