Skip to content

Commit

Permalink
fix: no strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
rupato-deriv committed Jul 2, 2024
1 parent b93d047 commit c637fe9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"scripts": {
"start": "vite",
"start:dev": "vite-live-preview --reload --port=8443",
"start:dev": "vite-live-preview --reload --port=8444",
"build": "vite build",
"preview": "vite preview",
"test:lint": "prettier --log-level silent --write . && eslint \"./src/**/*.?(js|jsx|ts|tsx)\"",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dashboard/dashboard-bot-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const DashboardBotList = observer(() => {
}
};

if (!dashboard_strategies) return null;
if (dashboard_strategies.length === 0) return null;
return (
<div className='dashboard__botlist'>
<div className='dashboard__botlist__header'>Your Bots</div>
Expand Down
13 changes: 11 additions & 2 deletions src/pages/dashboard/dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ $spacing-medium: 3rem;

&__table {
width: 100%;
height: 35rem;
height: 30rem;
overflow: auto;
display: block;

Expand Down Expand Up @@ -73,7 +73,7 @@ $spacing-medium: 3rem;
}

&__bot_name {
width: 40%;
width: 46%;
}

&__last_modified,
Expand Down Expand Up @@ -115,6 +115,15 @@ $spacing-medium: 3rem;
}
}

&__title {
font-size: 2rem;
font-weight: bold;

@include align-center;

margin-bottom: 3rem;
}

&__description {
font-size: 16px;
font-weight: normal;
Expand Down
1 change: 1 addition & 0 deletions src/pages/dashboard/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const Dashboard = observer(() => {
User Guide
</button>
</div>
<div className='dashboard__title'>Load or build your bot</div>
<div className='dashboard__description'>
Import a bot from your computer or Google Drive, build it from scratch, or start with a quick
strategy.
Expand Down

0 comments on commit c637fe9

Please sign in to comment.