Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
hlomzik committed Jun 24, 2024
1 parent c0e2c19 commit 818e545
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions web/libs/editor/src/components/SidePanels/TabPanels/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,7 @@ export const Tabs = (props: BaseProps) => {
<Elem name="tabs-row">
{props.panelViews.map((view, index) => {
const { component: Component } = view;
const title = view.titleComponent
? <view.titleComponent regions={props.regions} />
: view.title;
const title = view.titleComponent ? <view.titleComponent regions={props.regions} /> : view.title;

return (
<Elem name="tab-container" key={`${view.name}-${index}-tab`} mod={{ active: view.active }}>
Expand Down
4 changes: 2 additions & 2 deletions web/libs/editor/tests/e2e/fragments/AtSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ module.exports = {
_regionsCounterLocator: locate(".lsf-panel-tabs__counter"),
_regionLocator: locate(".lsf-tree-treenode"),
_hiddenRegionLocator: locate(".lsf-tree-treenode.lsf-tree__node_hidden"),
_regionSelectedLocator: locate('.lsf-tree-treenode-selected'),
_regionUnselectedLocator: locate('.lsf-tree-treenode:not(.lsf-tree-treenode-selected)'),
_regionSelectedLocator: locate(".lsf-tree-treenode-selected"),
_regionUnselectedLocator: locate(".lsf-tree-treenode:not(.lsf-tree-treenode-selected)"),
_selectedRegionsLocator: locate(".lsf-detailed-region"),
seeRegions(count) {
if (count) {
Expand Down

0 comments on commit 818e545

Please sign in to comment.