Skip to content

Commit

Permalink
remove WS, remove assign tabsTool to variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomastomaslol committed May 4, 2021
1 parent 084c5ee commit c4ed885
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/components/src/tabs/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ export interface TabsProps {
export const Tabs: FunctionComponent<TabsProps> = memo(
({ children, selected, actions, absolute, bordered, tools, backgroundColor, id: htmlId }) => {
const list = childrenToList(children, selected);

return list.length ? (
<Wrapper absolute={absolute} bordered={bordered} id={htmlId}>
<FlexBar border backgroundColor={backgroundColor}>
Expand Down
3 changes: 1 addition & 2 deletions lib/ui/src/components/preview/toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ export function filterTools(
path: State['path'];
}
) {
const tabsTool = createTabsTool(tabs);
const toolsLeft = [tabsTool, ...tools];
const toolsLeft = [createTabsTool(tabs), ...tools];
const toolsRight = [...toolsExtra];

const filter = (item: Partial<Addon>) =>
Expand Down

0 comments on commit c4ed885

Please sign in to comment.