diff --git a/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx b/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx index ba65064971d..d3e2aa61873 100644 --- a/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx +++ b/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx @@ -1,20 +1,23 @@ -import { FC } from 'react' -import { observer } from 'mobx-react-lite' -import { IconAlertCircle, IconPauseCircle } from '@supabase/ui' +import { FC, useState } from 'react' +import { Button, IconAlertCircle, IconPauseCircle } from '@supabase/ui' import { Project } from 'types' +import Link from '@supabase/ui/dist/cjs/components/Typography/Link' +import router from 'next/router' interface Props { project: Project } const ProjectPausedState: FC = ({ project }) => { + const [isSubmitting, setIsSubmitting] = useState(false) + const { ref } = router.query + return ( <>
-
-
+
@@ -25,15 +28,30 @@ const ProjectPausedState: FC = ({ project }) => {

This project is paused.

-
- Restore / Delete +
+ + + Delete +
- +
-

Your account can only have 2 free projects.

-

To restore this project you'll need to pause or delete an existing free project first.

+

+ Your account can only have 2 free projects. +

+

+ To restore this project you'll need to pause or delete an existing free project + first. +

@@ -44,4 +62,4 @@ const ProjectPausedState: FC = ({ project }) => { ) } -export default observer(ProjectPausedState) +export default ProjectPausedState diff --git a/studio/pages/project/[ref]/index.tsx b/studio/pages/project/[ref]/index.tsx index a7c22512b98..d78867003c5 100644 --- a/studio/pages/project/[ref]/index.tsx +++ b/studio/pages/project/[ref]/index.tsx @@ -14,7 +14,9 @@ const Home: NextPageWithLayout = () => { const { ui } = useStore() const project = ui.selectedProject - console.log( toJS( project ) ) + + console.log('project ref:', toJS(project)) + const projectName = project?.ref !== 'default' && project?.name !== undefined ? project?.name @@ -25,7 +27,7 @@ const Home: NextPageWithLayout = () => {

{projectName}

{project?.status == 'INACTIVE' && ( -
+
@@ -37,6 +39,7 @@ const Home: NextPageWithLayout = () => {
{project && project?.status == 'INACTIVE' && } + {IS_PLATFORM && project?.status !== 'INACTIVE' && }
@@ -44,9 +47,9 @@ const Home: NextPageWithLayout = () => { Client libraries
- {CLIENT_LIBRARIES.map( ( library ) => ( + {CLIENT_LIBRARIES.map((library) => ( - ) )} + ))}
@@ -54,15 +57,15 @@ const Home: NextPageWithLayout = () => { Example projects
- {EXAMPLE_PROJECTS.map( ( project ) => ( + {EXAMPLE_PROJECTS.map((project) => ( - ) )} + ))}
) } -Home.getLayout = ( page ) => {page} +Home.getLayout = (page) => {page} -export default observer( Home ) +export default observer(Home)