refactor: use mobx for state and separate files for components

This commit is contained in:
Antonella Sgarlatta
2021-09-07 12:04:25 -03:00
parent 1b87df18bc
commit 28dab13fb1
9 changed files with 288 additions and 225 deletions

View File

@@ -1,4 +1,4 @@
import { Sync, Subscription } from '@/preferences/panes/account';
import { Sync, SubscriptionWrapper } from '@/preferences/panes/account';
import { PreferencesPane } from '@/preferences/components';
import { observer } from 'mobx-react-lite';
import { WebApplication } from '@/ui_models/application';
@@ -7,7 +7,7 @@ export const AccountPreferences = observer(({application}: {application: WebAppl
return (
<PreferencesPane>
<Sync application={application} />
<Subscription application={application} />
<SubscriptionWrapper application={application} />
</PreferencesPane>
);
});