update
This commit is contained in:
@@ -33,6 +33,7 @@ export default async function Layout({ children }) {
|
||||
</form>
|
||||
</ul>
|
||||
</nav>
|
||||
{children}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { cookies } from 'next/headers';
|
||||
|
||||
import db from '@/db';
|
||||
import { accountFeedURL } from '@/paths';
|
||||
|
||||
import { Container } from '@/components/Container';
|
||||
|
||||
@@ -19,14 +20,14 @@ async function getSession() {
|
||||
|
||||
export default async function Page() {
|
||||
const userId = await getSession();
|
||||
const { uuid } = await db.get('select uuid from subscriptions where user_id=?', userId);
|
||||
return (
|
||||
<div className="pt-16 pb-12 sm:pb-4 lg:pt-12">
|
||||
<Container>
|
||||
<h1 className="text-2xl font-bold leading-7 text-slate-900">
|
||||
The Reactors
|
||||
</h1>
|
||||
<a href="https://buy.stripe.com/test_3cs01j768d65gso289">Level I</a>
|
||||
{userId && <p>user: {userId}</p>}
|
||||
{<p>feed URL: <a href={accountFeedURL(uuid)}>{accountFeedURL(uuid)}</a></p>}
|
||||
</Container>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user