-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:binary-com/deriv-app into jim/dse…
…c-26597/update-ghpages-version
- Loading branch information
Showing
46 changed files
with
40,996 additions
and
341 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
packages/bot-web-ui/src/pages/server-side-bot/bot-list/clear-journal-transactions.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import React from 'react'; | ||
import { Dialog, Text } from '@deriv/components'; | ||
import { Localize, localize } from '@deriv/translations'; | ||
import { useDBotStore } from 'Stores/useDBotStore'; | ||
import { observer } from '@deriv/stores'; | ||
|
||
type TDeleteServerBot = { | ||
is_open: boolean; | ||
setVisibility: (is_open: boolean) => void; | ||
}; | ||
|
||
const ClearJournalTransactions = observer(({ is_open, setVisibility }: TDeleteServerBot) => { | ||
const { server_bot } = useDBotStore(); | ||
const { resetJournal, resetTransactions } = server_bot; | ||
const onOkButtonClick = () => { | ||
resetJournal(); | ||
resetTransactions(); | ||
setVisibility(false); | ||
}; | ||
|
||
return ( | ||
<Dialog | ||
title={localize('Are you sure?')} | ||
is_visible={is_open} | ||
confirm_button_text={localize('Ok')} | ||
onConfirm={onOkButtonClick} | ||
cancel_button_text={localize('Cancel')} | ||
onCancel={() => setVisibility(false)} | ||
onClose={() => setVisibility(false)} | ||
is_mobile_full_width={false} | ||
className={'dc-dialog__wrapper--fixed'} | ||
portal_element_id='modal_root' | ||
has_close_icon | ||
> | ||
<Text color='prominent' line_height='xl' size='xs'> | ||
<Localize i18n_default_text='This will clear all data in the summary and journal panels. All counters will be reset to zero.' /> | ||
</Text> | ||
</Dialog> | ||
); | ||
}); | ||
|
||
export default ClearJournalTransactions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+956 KB
packages/core/src/public/videos/user-onboarding-guide-positions-page.mp4
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.