Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
birkskyum committed May 2, 2024
1 parent c0c697d commit 9fa46c0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions modules/react-editable-layers/src/toolbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Tools = styled.div<{left: boolean}>`
display: flex;
flex-direction: column;
top: 10px;
${props => props.left ? "left" : "right"}: 10px;
${(props) => (props.left ? 'left' : 'right')}: 10px;
`;

const Button = styled.button<{active?: boolean; kind?: string}>`
Expand Down Expand Up @@ -51,7 +51,7 @@ const SubTools = styled.div<{left: boolean}>`
flex-direction: row-reverse;
position: absolute;
top: 0;
${props => props.left ? "left" : "right"}: 0;
${(props) => (props.left ? 'left' : 'right')}: 0;
`;

export type Props = {
Expand Down Expand Up @@ -165,7 +165,13 @@ export function Toolbox({
<>
<Tools left={left}>
{MODE_GROUPS.map((modeGroup, i) => (
<ModeGroupButtons left={left} key={i} modeGroup={modeGroup} mode={mode} onSetMode={onSetMode} />
<ModeGroupButtons
left={left}
key={i}
modeGroup={modeGroup}
mode={mode}
onSetMode={onSetMode}
/>
))}

{/* <box-icon name='current-location' ></box-icon> */}
Expand Down

0 comments on commit 9fa46c0

Please sign in to comment.