-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix header footer and sidebar styles
- Loading branch information
1 parent
41266e8
commit 3ea49ee
Showing
30 changed files
with
2,288 additions
and
419 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
.app-header__logo { | ||
padding-left: 1.2rem; | ||
padding-right: 2rem; | ||
border-right: 1px solid #f2f3f4; | ||
height: 32px; | ||
display: flex; | ||
align-items: center; | ||
.app-header { | ||
&__logo { | ||
padding-inline-start: 1.2rem; | ||
padding-inline-end: 2rem; | ||
border-inline-end: 1px solid var(--general-section-1); | ||
height: 32px; | ||
display: flex; | ||
align-items: center; | ||
} | ||
} |
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,22 @@ | ||
import useFullScreen from '@/hooks/useFullScreen'; | ||
import { LegacyFullscreen1pxIcon } from '@deriv/quill-icons'; | ||
import { useTranslations } from '@deriv-com/translations'; | ||
import { Tooltip } from '@deriv-com/ui'; | ||
|
||
const FullScreen = () => { | ||
const { toggleFullScreenMode } = useFullScreen(); | ||
const { localize } = useTranslations(); | ||
|
||
return ( | ||
<Tooltip | ||
as='button' | ||
className='app-footer__icon' | ||
onClick={toggleFullScreenMode} | ||
tooltipContent={localize('Full screen')} | ||
> | ||
<LegacyFullscreen1pxIcon iconSize='xs' /> | ||
</Tooltip> | ||
); | ||
}; | ||
|
||
export default FullScreen; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { useActiveAccount } from '@/hooks/api/account'; | ||
import { CurrencyUsdIcon } from '@deriv/quill-icons'; | ||
import { AccountSwitcher as UIAccountSwitcher } from '@deriv-com/ui'; | ||
import { FormatUtils } from '@deriv-com/utils'; | ||
|
||
type TActiveAccount = NonNullable<ReturnType<typeof useActiveAccount>['data']>; | ||
type TAccountSwitcherProps = { | ||
account: TActiveAccount; | ||
}; | ||
|
||
export const AccountSwitcher = ({ account }: TAccountSwitcherProps) => { | ||
const activeAccount = { | ||
balance: FormatUtils.formatMoney(account?.balance ?? 0), | ||
currency: account?.currency || 'USD', | ||
currencyLabel: account?.currency || 'US Dollar', | ||
icon: <CurrencyUsdIcon iconSize='sm' />, | ||
isActive: true, | ||
isVirtual: Boolean(account?.is_virtual), | ||
loginid: account?.loginid || '', | ||
}; | ||
return account && <UIAccountSwitcher activeAccount={activeAccount} buttonClassName='mr-4' isDisabled />; | ||
}; |
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.