Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 6f46d049 authored by Stefanus Ndaru Wedhatama's avatar Stefanus Ndaru Wedhatama :beetle:
Browse files

Fix error on TS files

parent 076fba4a
No related branches found
No related tags found
2 merge requests!4Staging,!3Fix error on TS files
Pipeline #148638 failed
......@@ -4,7 +4,7 @@ import Nav from '../components/Nav';
import PostCard from '../components/PostCard';
import styles from '../styles/Home.module.css';
export default function Home({ posts }) {
export default function Home({ posts }:any) {
return (
<div>
<Head>
......@@ -19,7 +19,7 @@ export default function Home({ posts }) {
<h2>No added posts</h2>
) : (
<ul>
{posts.map((post, i) => (
{posts.map((post:any, i:any) => (
<PostCard post={post} key={i} />
))}
</ul>
......@@ -30,7 +30,7 @@ export default function Home({ posts }) {
);
}
export async function getServerSideProps(ctx) {
export async function getServerSideProps(ctx:any) {
// get the current environment
let dev = process.env.NODE_ENV !== 'production';
let { DEV_URL, PROD_URL } = process.env;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment