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 { ...@@ -21,13 +21,12 @@ export class CompanionArea extends Component {
/** */ /** */
collapseIcon() { collapseIcon() {
const { companionAreaOpen, direction } = this.props; const { companionAreaOpen, direction } = this.props;
if (companionAreaOpen) { if (direction === 'rtl') {
if (direction === 'ltr') { if (companionAreaOpen) return <ArrowRightIcon />;
return <ArrowLeftIcon />; return <ArrowLeftIcon />;
} }
return <ArrowRightIcon />;
} if (companionAreaOpen) return <ArrowLeftIcon />;
if (direction === 'rtl') return <ArrowLeftIcon />;
return <ArrowRightIcon />; return <ArrowRightIcon />;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment