Newer
Older
CrypticOreWallet / src / pages / DashboardPage.tsx
@Drew Lemmy Drew Lemmy on 14 Feb 2021 714 bytes refactor: switch to ant-design
import { Button } from "antd";

import { useSelector, shallowEqual } from "react-redux";
import { RootState } from "../store";

import { PageLayout } from "../layout/PageLayout";
import { AuthorisedAction } from "../components/AuthorisedAction";

export function DashboardPage() {
  const { isAuthed, salt, tester, hasMasterPassword }
    = useSelector((s: RootState) => s.walletManager, shallowEqual);

  return <PageLayout title="(TEMPORARY) Dashboard"> {/* TODO */}
    <p>Is authed: {isAuthed ? "yes" : "no"}</p>
    <p>Has master password: {hasMasterPassword ? "yes" : "no"}</p>

    <AuthorisedAction>
      <Button type="primary">Perform authorised action</Button>
    </AuthorisedAction>
  </PageLayout>
}