Skip to content

Commit

Permalink
Merge pull request #2360 from IX-Swap/fixbug/bug-on-template-file
Browse files Browse the repository at this point in the history
Set buy tab by default in SideBar.tsx for LBP
  • Loading branch information
thi-investax authored Jun 3, 2024
2 parents 93057a3 + 1f9b44a commit 14cc544
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/LBP/PublicDetails/SideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ const TradeTabs: React.FC<SideTabsBarProps> = ({ currentTab, onTabSelect }) => {
}

const SideBar: React.FC<SideBarProps> = ({ lbpData, isPausedSideBar }) => {
const [activeTab, setActiveTab] = React.useState<PublicDetails>(() => {
const savedTab = localStorage.getItem('ActiveTab')
return (savedTab as PublicDetails) ?? PublicDetails.buy
})
const [activeTab, setActiveTab] = React.useState<PublicDetails>(PublicDetails.buy)
const [open, setOpen] = React.useState(false)
const handleOpen = () => setOpen(true)
const handleClose = () => setOpen(false)
Expand Down

0 comments on commit 14cc544

Please sign in to comment.