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

@@ -0,0 +1,23 @@
import { FunctionalComponent } from "preact";
import { Text } from '@/preferences/components';
import { Button } from '@/components/Button';
export const NoSubscription: FunctionalComponent = () => (
<>
<Text>You don't have a Standard Notes subscription yet.</Text>
<div className="flex">
<Button
className="min-w-20 mt-3 mr-3"
type="normal"
label="Refresh"
onClick={() => null}
/>
<Button
className="min-w-20 mt-3"
type="primary"
label="Purchase subscription"
onClick={() => null}
/>
</div>
</>
);