Skip to content

Commit

Permalink
Merge pull request #17 from deriv-com/sandeep/bot-1952/fix-icons-font
Browse files Browse the repository at this point in the history
sandeep/bot-1952/fix-icons-font
  • Loading branch information
sandeep-deriv authored Jul 5, 2024
2 parents 44cc841 + 0624ccb commit 3ab9b40
Show file tree
Hide file tree
Showing 30 changed files with 401 additions and 150 deletions.
8 changes: 8 additions & 0 deletions public/assets/icons/IcBlockly.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/assets/icons/IcBotBuilder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/assets/icons/IcBotBuilderSkeleton.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions public/assets/icons/IcChart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions public/assets/icons/IcChevronDown.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions public/assets/icons/IcChevronDownBold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions public/assets/icons/IcChevronUp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/assets/icons/IcDashboard.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions public/assets/icons/IcGoogleDrive.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions public/assets/icons/IcMapTripFold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions public/assets/icons/IcMyComputer.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions public/assets/icons/IcOpen.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions public/assets/icons/IcPlay.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions public/assets/icons/IcReports.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions public/assets/icons/IcSave.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions public/assets/icons/IcStop.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions public/assets/icons/IcTrash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/assets/icons/IcTutorials.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/trade-animation/trade-animation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const TradeAnimation = observer(({ className, should_show_overlay }: TTradeAnima

const button_props = React.useMemo(() => {
if (is_stop_button_visible) {
return { id: 'db-animation__stop-button', text: localize('Stop'), icon: 'IcBotStop' };
return { id: 'db-animation__stop-button', text: localize('Stop'), icon: 'IcStop' };
}
return { id: 'db-animation__run-button', text: localize('Run'), icon: 'IcPlay' };
}, [is_stop_button_visible]);
Expand Down
20 changes: 8 additions & 12 deletions src/constants/dashboard.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { localize } from '@/utils/tmp/dummy';

export const STRATEGY = {
OPEN: 'open',
EDIT: 'edit',
SAVE: 'save',
DELETE: 'delete',
Expand All @@ -11,29 +12,24 @@ export const STRATEGY = {

export const MENU_DESKTOP = [
{
type: STRATEGY.EDIT,
icon: 'IcEdit',
type: STRATEGY.OPEN,
icon: 'IcOpen',
},
{
type: STRATEGY.SAVE,
icon: 'IcSave',
},
{
type: STRATEGY.DELETE,
icon: 'IcDelete',
icon: 'IcTrash',
},
];

export const CONTEXT_MENU_MOBILE = [
{
type: STRATEGY.PREVIEW_LIST,
icon: 'IcPreview',
label: localize('Preview'),
},
{
type: STRATEGY.EDIT,
icon: 'IcEdit',
label: localize('Edit'),
type: STRATEGY.OPEN,
icon: 'IcOpen',
label: localize('Open'),
},
{
type: STRATEGY.SAVE,
Expand All @@ -42,7 +38,7 @@ export const CONTEXT_MENU_MOBILE = [
},
{
type: STRATEGY.DELETE,
icon: 'IcDelete',
icon: 'IcTrash',
label: localize('Delete'),
},
];
2 changes: 2 additions & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ import ReactDOM from 'react-dom/client';

import App from './app/App.tsx';

import './styles/index.scss';

ReactDOM.createRoot(document.getElementById('root')!).render(<App />);
Loading

0 comments on commit 3ab9b40

Please sign in to comment.