-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rename CF + remove app.js bloat + a bonus string fix for the ACD entry * shorten billetBankGroup + supportDepartments strings * format AdrListEntry.js
- Loading branch information
Showing
3 changed files
with
22 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 9 additions & 5 deletions
14
...t/src/modules/Generic/CombinedFunction.js → client/src/modules/Generic/AdrListEntry.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,30 @@ | ||
import React from "react"; | ||
import Collapsible from "react-collapsible"; | ||
import MilpacParse from "./MilpacParse.js"; | ||
import lists from "./BilletBank.js"; | ||
|
||
function AdrListEntry(props) { | ||
let billetBankObject = lists.billetBankObject; | ||
let selector = props.billetBankGroup; | ||
|
||
function CombinedFunction(props) { | ||
return ( | ||
<div className="DepartmentContainer"> | ||
<Collapsible | ||
trigger={props.collapsibleTitle} | ||
trigger={billetBankObject[selector].collapsibleTitle} | ||
triggerClassName="Title" | ||
triggerOpenedClassName="Title" | ||
open={true} | ||
> | ||
<div className="ResponseContainer"> | ||
<MilpacParse | ||
milpacArray={props.milpacArray} | ||
headerTitles={props.headerTitles} | ||
billetBankObject={props.billetBankObject} | ||
headerTitles={billetBankObject[selector].positionTitles} | ||
billetBankObject={billetBankObject[selector].positionIds} | ||
/> | ||
</div> | ||
</Collapsible> | ||
</div> | ||
); | ||
} | ||
|
||
export default CombinedFunction; | ||
export default AdrListEntry; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters