Skip to content
Snippets Groups Projects
Commit 83a2703d authored by Jack Reed's avatar Jack Reed Committed by Chris Beer
Browse files

Update src/components/CompanionArea.js


Co-Authored-By: default avatarChris Beer <cabeer@stanford.edu>
parent 34f20ba4
Branches
Tags
No related merge requests found
......@@ -21,13 +21,12 @@ export class CompanionArea extends Component {
/** */
collapseIcon() {
const { companionAreaOpen, direction } = this.props;
if (companionAreaOpen) {
if (direction === 'ltr') {
if (direction === 'rtl') {
if (companionAreaOpen) return <ArrowRightIcon />;
return <ArrowLeftIcon />;
}
return <ArrowRightIcon />;
}
if (direction === 'rtl') return <ArrowLeftIcon />;
if (companionAreaOpen) return <ArrowLeftIcon />;
return <ArrowRightIcon />;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment