Skip to content

Commit

Permalink
inline variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dcmorse committed Jun 16, 2020
1 parent 3645c72 commit 9035d67
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/javascript/iconized-side-tab-toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ export const IconizedSideTab = ({
: "side-panel-toggle-iconized-left"
const buttonClass = label === "program" ? "toggle-program" : "toggle-filters"
const glyphicon = onRightSide ? "glyphicon-menu-left" : "glyphicon-menu-right"
const labelJSX = Array.from({ length: label.length }, (_, i) => (
<div key={i}>{label.charAt(i)}</div>
))
const button = (
<div>
<div
Expand All @@ -26,7 +23,9 @@ export const IconizedSideTab = ({
<div>
<span className={"glyphicon " + glyphicon} />
</div>
{labelJSX}
{Array.from({ length: label.length }, (_, i) => (
<div key={i}>{label.charAt(i)}</div>
))}
</h2>
</button>
</div>
Expand Down

0 comments on commit 9035d67

Please sign in to comment.