diff --git a/client/components/post/title/index.tsx b/client/components/post/title/index.tsx
index 92b8020..03fe1a0 100644
--- a/client/components/post/title/index.tsx
+++ b/client/components/post/title/index.tsx
@@ -8,6 +8,9 @@ const titlePlaceholders = [
"Status update for ...",
"My new project",
"My new idea",
+ "Let's talk about...",
+ "What's up with ...",
+ "I'm thinking about ...",
]
type props = {
@@ -25,7 +28,7 @@ const Title = ({ setTitle, title }: props) => {
onChange={(event) => setTitle(event.target.value)}
height={"55px"}
font={1.5}
- label="Your title"
+ label="Post title"
marginLeft={'var(--gap)'}
style={{ width: "100%" }}
/>
diff --git a/client/next.config.js b/client/next.config.js
index 15362d4..3aaadd8 100644
--- a/client/next.config.js
+++ b/client/next.config.js
@@ -1,8 +1,6 @@
const dotenv = require("dotenv");
dotenv.config();
-console.log(`${process.env.API_URL}/:path*`);
-
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
diff --git a/client/pages/_app.tsx b/client/pages/_app.tsx
index 30a35dd..0d6e0e7 100644
--- a/client/pages/_app.tsx
+++ b/client/pages/_app.tsx
@@ -1,6 +1,6 @@
import '../styles/globals.css'
import { GeistProvider, CssBaseline } from '@geist-ui/core'
-import { useState } from 'react'
+import { useEffect, useState } from 'react'
import type { AppProps as NextAppProps } from "next/app";
export type ThemeProps = {
@@ -15,7 +15,13 @@ type AppProps
= {
export type DriftProps = ThemeProps
function MyApp({ Component, pageProps }: AppProps) {
- const [themeType, setThemeType] = useState(typeof window !== 'undefined' ? localStorage.getItem('drift-theme') || 'light' : 'light')
+ const [themeType, setThemeType] = useState('light')
+
+ useEffect(() => {
+ if (typeof window === 'undefined' || !window.localStorage) return
+ const storedTheme = window.localStorage.getItem('drift-theme')
+ if (storedTheme) setThemeType(storedTheme)
+ }, [])
const changeTheme = () => {
const newTheme = themeType === 'dark' ? 'light' : 'dark'