diff --git a/packages/backend/src/routes/auth.ts b/packages/backend/src/routes/auth.ts
index 3c4aa4bb..d0cd2f28 100644
--- a/packages/backend/src/routes/auth.ts
+++ b/packages/backend/src/routes/auth.ts
@@ -94,13 +94,4 @@ router.get('/session', (req, res) => {
}
});
-router.post('/logout', (req, res) => {
- req.session.destroy((err) => {
- if (err) {
- return res.send({ success: false });
- }
- res.send({ success: true });
- });
-});
-
export default router;
diff --git a/packages/frontend/src/components/projects/create/AccountsDropdown.tsx b/packages/frontend/src/components/projects/create/AccountsDropdown.tsx
deleted file mode 100644
index 4ef0a61f..00000000
--- a/packages/frontend/src/components/projects/create/AccountsDropdown.tsx
+++ /dev/null
@@ -1,60 +0,0 @@
-import {
- Select,
- Option,
- Spinner,
-} from '@snowballtools/material-tailwind-react-fork';
-
-const AccountsDropdown = ({
- accounts,
- isDataReceived,
- onAccountChange,
-}: {
- accounts: string[];
- isDataReceived: boolean;
- onAccountChange: (selectedAccount: string) => void;
-}) => {
- return (
-
- {isDataReceived ? (
- !accounts.length ? (
-
- ) : (
-
-
-
- )
- ) : (
-
-
-
- )}
-
- );
-};
-
-export default AccountsDropdown;
diff --git a/packages/frontend/src/components/projects/create/Configure.tsx b/packages/frontend/src/components/projects/create/Configure.tsx
index 66a9c60a..63937f43 100644
--- a/packages/frontend/src/components/projects/create/Configure.tsx
+++ b/packages/frontend/src/components/projects/create/Configure.tsx
@@ -10,6 +10,7 @@ import {
} from 'gql-client';
import { Select, MenuItem, FormControl, FormHelperText } from '@mui/material';
+import { Spinner } from '@snowballtools/material-tailwind-react-fork';
import {
ArrowRightCircleFilledIcon,
@@ -27,7 +28,6 @@ import {
VITE_LACONICD_CHAIN_ID,
VITE_WALLET_IFRAME_URL,
} from 'utils/constants';
-import AccountsDropdown from './AccountsDropdown';
type ConfigureDeploymentFormValues = {
option: string;
@@ -46,7 +46,6 @@ const Configure = () => {
const [isLoading, setIsLoading] = useState(false);
const [deployers, setDeployers] = useState([]);
const [selectedAccount, setSelectedAccount] = useState();
- const [accounts, setAccounts] = useState([]);
const [selectedDeployer, setSelectedDeployer] = useState();
const [isPaymentLoading, setIsPaymentLoading] = useState(false);
const [isPaymentDone, setIsPaymentDone] = useState(false);
@@ -311,10 +310,6 @@ const Configure = () => {
setDeployers(res.deployers);
}, [client]);
- const onAccountChange = useCallback((account: string) => {
- setSelectedAccount(account);
- }, []);
-
const onDeployerChange = useCallback(
(selectedLrn: string) => {
const deployer = deployers.find((d) => d.deployerLrn === selectedLrn);
@@ -580,12 +575,31 @@ const Configure = () => {
) : (
<>
-
- {accounts.length > 0 && (
+
+ {isAccountsDataReceived ? (
+ !selectedAccount && (
+
+ )
+ ) : (
+
+
+
+ )}
+
+ {selectedAccount && (
)}
-
);