diff --git a/src/pages/popup/Popup.tsx b/src/pages/popup/Popup.tsx index 5c3a50b..90764c9 100644 --- a/src/pages/popup/Popup.tsx +++ b/src/pages/popup/Popup.tsx @@ -7,5 +7,10 @@ interface PopupProps { } export default function Popup({ authenticated }: PopupProps): JSX.Element { - return
{authenticated ? : }
; + const cssClass = authenticated ? 'home-component' : 'login-component'; + return ( +
+ {authenticated ? : } +
+ ); } diff --git a/src/pages/popup/components/login/Login.tsx b/src/pages/popup/components/login/Login.tsx index d0492c8..227997b 100644 --- a/src/pages/popup/components/login/Login.tsx +++ b/src/pages/popup/components/login/Login.tsx @@ -1,6 +1,7 @@ import React, { useState } from 'react'; import LoginSubmitButtonComponent from '@pages/popup/components/login/LoginSubmitButton'; import { getSession } from 'fastmail-masked-email'; +import icon from '@assets/img/icon.svg'; export default function LoginComponent() { const [apiToken, setApiToken] = useState(''); @@ -18,52 +19,77 @@ export default function LoginComponent() { await chrome.storage.sync.set({ fastmail_session: session }); }; return ( -
-
-
-

- Authentication -

-

- Fastmail requires an API token with the{' '} - masked email scope to be able - to access and manage your masked emails. -
- You can learn more about creating an API token{' '} - - here - -

-
{ - e.preventDefault(); - handleSubmit(); - }} - className="flex flex-col space-y-5" - > -
-