-
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.
refactor: delete --mobile class, useStore and observer
- Loading branch information
1 parent
6d578f6
commit 489dec5
Showing
2 changed files
with
4 additions
and
14 deletions.
There are no files selected for viewing
16 changes: 3 additions & 13 deletions
16
packages/appstore/src/modules/onboarding/empty-onboarding.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 |
---|---|---|
@@ -1,24 +1,14 @@ | ||
import React from 'react'; | ||
import TradigPlatformIconProps from 'Assets/svgs/trading-platform'; | ||
import { observer, useStore } from '@deriv/stores'; | ||
import classNames from 'classnames'; | ||
|
||
const EmptyOnboarding = observer(() => { | ||
const { | ||
ui: { is_mobile }, | ||
} = useStore(); | ||
|
||
const EmptyOnboarding = () => { | ||
return ( | ||
<div className='empty-onboarding__wrapper'> | ||
<div | ||
className={classNames('empty-onboarding__header', { | ||
'empty-onboarding__header--mobile': is_mobile, | ||
})} | ||
> | ||
<div className='empty-onboarding__header'> | ||
<TradigPlatformIconProps icon='DerivLogo' /> | ||
</div> | ||
</div> | ||
); | ||
}); | ||
}; | ||
|
||
export default EmptyOnboarding; |
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 |
---|---|---|
|
@@ -113,7 +113,7 @@ | |
justify-content: center; | ||
align-items: center; | ||
|
||
&--mobile { | ||
@include mobile { | ||
height: auto; | ||
} | ||
} | ||
|