Skip to content

Commit

Permalink
refactor: delete --mobile class, useStore and observer
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-deriv committed May 25, 2023
1 parent 6d578f6 commit 489dec5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
16 changes: 3 additions & 13 deletions packages/appstore/src/modules/onboarding/empty-onboarding.tsx
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;
2 changes: 1 addition & 1 deletion packages/appstore/src/modules/onboarding/onboarding.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
justify-content: center;
align-items: center;

&--mobile {
@include mobile {
height: auto;
}
}
Expand Down

0 comments on commit 489dec5

Please sign in to comment.