From 51672b267d1d409ca1612213640260352ad0eca7 Mon Sep 17 00:00:00 2001 From: Anh Hoang Nguyen Date: Tue, 26 Nov 2024 10:59:23 +0700 Subject: [PATCH] Fix: title is typoed with %s --- theme.config.tsx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/theme.config.tsx b/theme.config.tsx index 0a7818c..59d22ae 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { DocsThemeConfig } from "nextra-theme-docs"; +import { DocsThemeConfig, useConfig } from "nextra-theme-docs"; import HeadComponent from "@components/head"; const config: DocsThemeConfig = { @@ -12,12 +12,15 @@ const config: DocsThemeConfig = { }, docsRepositoryBase: "https://github.com/lfglabs-dev/docs.starknet.id", footer: { component: null }, - head: ( - <> - - %s - - ), + head: () => { + const { title } = useConfig() + return ( + <> + + {title ?? "Starknet ID Docs"} + + ) + }, }; export default config;