Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search and sort home page table #22

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 69 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,21 @@
"name": "revue-website",
"version": "0.1.0",
"private": true,
"pre-commit": [
"prettierFixCurrentChanges"
],
"dependencies": {
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^13.0.0",
"@testing-library/user-event": "^13.2.1",
"@types/jest": "^27.0.1",
"@types/lodash": "^4.17.10",
"@types/node": "^16.7.13",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react-router-bootstrap": "^0.24.5",
"@types/react-router-dom": "^5.3.3",
"@types/react-table": "^7.7.20",
"bootstrap": "4.3.1",
"font-awesome": "4.7.0",
"lodash": "^4.17.21",
Expand All @@ -21,14 +26,16 @@
"react-router-bootstrap": "^0.26.2",
"react-router-dom": "^6.4.2",
"react-scripts": "5.0.1",
"react-table": "^7.8.0",
"typescript": "^4.4.2",
"web-vitals": "^2.1.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"prettierFixCurrentChanges": "STAGED_AND_CHANGED_FILES=$(git diff HEAD --name-only --cached --diff-filter=d) && ([ -z \"$STAGED_AND_CHANGED_FILES\" ] && echo \"Nothing to prettify\" || (yarn run prettier --write $(echo $STAGED_AND_CHANGED_FILES) && git add -f $(echo $STAGED_AND_CHANGED_FILES)))"
},
"eslintConfig": {
"extends": [
Expand All @@ -49,6 +56,6 @@
]
},
"devDependencies": {
"@types/lodash": "^4.17.7"
"prettier": "1.19.1"
}
}
6 changes: 6 additions & 0 deletions react-table-config.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// react-table-config.d.ts
import 'react-table';

declare module 'react-table' {
export interface ColumnInstance<D extends object = {}> extends UseSortByColumnProps<D> {}
}
Loading