diff --git a/components/Docs.tsx b/components/Docs.tsx index 8cb455d..f71d240 100644 --- a/components/Docs.tsx +++ b/components/Docs.tsx @@ -4,9 +4,16 @@ import dynamic from 'next/dynamic' const Container = dynamic(() => import('@components/Container')) const Docs: React.FC = ({ title, header, description, subheader, children }) => { + const t = typeof header === 'string' ? header : title + const d = description || subheader return ( <> - +

diff --git a/components/Hero.tsx b/components/Hero.tsx index 966bf69..8427217 100644 --- a/components/Hero.tsx +++ b/components/Hero.tsx @@ -9,7 +9,10 @@ const Search = dynamic(()=> import('@components/Search')) const Hero:React.FC = ({ header, description }) => { return <> - +

diff --git a/pages/addbot.tsx b/pages/addbot.tsx index 3c6c112..5456eab 100644 --- a/pages/addbot.tsx +++ b/pages/addbot.tsx @@ -71,10 +71,14 @@ const AddBot:NextPage = ({ logged, user, csrfToken, theme }) => { } if(!logged) return - + return - +

새로운 봇 추가하기

안녕하세요, {user.username}#{user.tag}님! 본인이 아니신가요? diff --git a/pages/calculator.tsx b/pages/calculator.tsx index 26380ad..1755667 100644 --- a/pages/calculator.tsx +++ b/pages/calculator.tsx @@ -24,7 +24,10 @@ const Calculator:NextPage = ({ query }) => { } return - +

봇 초대링크 생성기

권한: {Object.keys(value).filter(el => value[el]).map(el => Number(el)).reduce((prev, curr) => prev | curr, 0)} = { Object.keys(value).filter(el => value[el]).map(el => `0x${Number(el).toString(16)}`).join(' | ') }