Skip to content

Commit

Permalink
cleanup menu button
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillTregubov committed Jan 3, 2024
1 parent 603e108 commit 31062b4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/pages/content/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ export default function App() {
{isTrading ? (
<div>
<div className="mb-3 flex items-center justify-between gap-3 only:mb-0">
{showMenu ? (
<label className="group relative inline-flex cursor-pointer select-none items-center gap-2.5">
{showMenu && (
<label className="group relative inline-flex flex-shrink-0 cursor-pointer select-none items-center gap-2.5">
<input
type="checkbox"
className="peer sr-only"
Expand All @@ -115,11 +115,9 @@ export default function App() {
{isLong ? 'Long' : 'Short'} Mode
</span>
</label>
) : (
<div className="w-11" />
)}
<Button onClick={getPrice}>
{showMenu ? 'Close' : 'Open'} Menu
<Button onClick={getPrice} fullWidth>
{showMenu ? 'Stop' : 'Start'} Trading
</Button>
</div>
{showMenu && (
Expand All @@ -133,7 +131,9 @@ export default function App() {
</div>
) : (
<div className="flex items-center justify-between gap-4">
<Button onClick={startTrading}>Start Trading</Button>
<Button onClick={startTrading} fullWidth>
Start Trading
</Button>
</div>
)}
</div>
Expand Down

0 comments on commit 31062b4

Please sign in to comment.