-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
farabi/bot 444/highlight the tutorials tab (#9746)
* fix: higlighted tutorials on mobile onboarding and replaced gif with mp4 * fix: changes related to code review * fix: added width for mobile view of tour * fix: width for images and videos * fix: width adjustment on responsive * fix: disabled picture in picture and download for videos * fix: change step 5 video to updated one * fix: fix last step button * farzin/refactor(api): ♻️ clean-up (#9864) Co-authored-by: Farzin Mirzaie <farzin@deriv.com> * adrienne/feat: added svg bundling for wallets (#9871) * feat: added svg bundling for wallets * chore: removed assets folder in wallets --------- Co-authored-by: Farzin Mirzaie <72082844+farzin-deriv@users.noreply.github.com> Co-authored-by: Farzin Mirzaie <farzin@deriv.com> Co-authored-by: adrienne-deriv <103016120+adrienne-deriv@users.noreply.github.com>
- Loading branch information
1 parent
daa0718
commit da4638e
Showing
54 changed files
with
196 additions
and
159 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { useMemo } from 'react'; | ||
import useAccountTypes from './useAccountTypes'; | ||
import useLandingCompany from './useLandingCompany'; | ||
|
||
/** A custom hook to get all available accounts that user can have. */ | ||
const useAllAvailableAccounts = () => { | ||
const { data: landing_company_data } = useLandingCompany(); | ||
const { data: account_types_data, ...rest } = useAccountTypes(landing_company_data?.financial_company?.shortcode); | ||
|
||
// Add additional information to the account types response. | ||
const modified_account_types_data = useMemo(() => { | ||
if (!account_types_data) return; | ||
|
||
return { ...account_types_data }; | ||
}, [account_types_data]); | ||
|
||
return { | ||
/** The account types response. */ | ||
data: modified_account_types_data, | ||
...rest, | ||
}; | ||
}; | ||
|
||
export default useAllAvailableAccounts; |
This file was deleted.
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
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.