Skip to content

Commit

Permalink
Merge pull request #496 from cornell-dti/rj353/unsched_rides_dropdown
Browse files Browse the repository at this point in the history
Unscheduled rides are now expanded by default
  • Loading branch information
Atikpui007 authored Sep 20, 2024
2 parents 40211eb + e894ee4 commit cae6ac0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/Collapsible/Collapsible.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type CollapsibleSection = {
};

const Collapsible = ({ title, children }: CollapsibleSection) => {
const [expanded, setExpanded] = useState(false);
const [expanded, setExpanded] = useState(true); // Every Collapsible component will be expanded by default
const icon = expanded ? down : up;

const handleKeywordKeyPress = (e: React.KeyboardEvent) => {
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@typescript-eslint/parser": "^4.31.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-promise": "^5.1.0",
"typescript": "^4.4.3"
"typescript": "^4.9.5"
},
"devDependencies": {
"@babel/core": "^7.14.8",
Expand Down

0 comments on commit cae6ac0

Please sign in to comment.