Skip to content

Commit

Permalink
Fix screen blinking issue on smaller screen (#428)
Browse files Browse the repository at this point in the history
added react fragment for moreIcons in tab

Co-authored-by: Neha <[email protected]>
  • Loading branch information
jagadeeswaran-zipstack and nehabagdia authored Jul 2, 2024
1 parent 923bd41 commit 746949d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ function ConfigureConnectorModal({
activeKey={activeKey}
items={tabItems}
onChange={onTabChange}
moreIcon={<></>}
/>
{activeKey === "1" && (
<ConfigureFormsLayout
Expand Down
7 changes: 6 additions & 1 deletion frontend/src/components/agency/side-panel/SidePanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ function SidePanel() {
return (
<div className="sidepanel-layout">
<div className="sidepanel-tabs">
<Tabs activeKey={activeTabKey} items={items} onChange={handleTabKey} />
<Tabs
activeKey={activeTabKey}
items={items}
onChange={handleTabKey}
moreIcon={<></>}
/>
</div>
<div className="sidepanel-content">
{activeTabKey === "1" && <Tools />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ function DocumentManager({ generateIndex, handleUpdateTool, handleDocChange }) {
activeKey={activeKey}
items={items}
onChange={handleActiveKeyChange}
moreIcon={<></>}
/>
</div>
<Space>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,12 @@ function ToolsMain() {
<div className="tools-main-layout">
<div className="doc-manager-header">
<div className="tools-main-tabs">
<Tabs activeKey={activeKey} items={items} onChange={onChange} />
<Tabs
activeKey={activeKey}
items={items}
onChange={onChange}
moreIcon={<></>}
/>
</div>
<div className="display-flex-align-center">
<Space>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ const DisplayCode = ({ isDialogOpen, setDialogOpen, url }) => {
}
onChange={handleTabKey}
items={TAB_ITEMS}
moreIcon={<></>}
/>
</Modal>
);
Expand Down

0 comments on commit 746949d

Please sign in to comment.