mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
style: deepscan fix
This commit is contained in:
parent
4db400265a
commit
094d7b4b24
@ -1,5 +1,5 @@
|
||||
import { NextPage, NextPageContext } from 'next'
|
||||
import { useRef, useState } from 'react'
|
||||
import { useState } from 'react'
|
||||
import { useRouter } from 'next/router'
|
||||
import dynamic from 'next/dynamic'
|
||||
import Link from 'next/link'
|
||||
|
||||
@ -17,13 +17,9 @@ const Container = dynamic(() => import('@components/Container'))
|
||||
const DiscordAvatar = dynamic(() => import('@components/DiscordAvatar'))
|
||||
const Button = dynamic(() => import('@components/Button'))
|
||||
const Tag = dynamic(() => import('@components/Tag'))
|
||||
const Owner = dynamic(() => import('@components/Owner'))
|
||||
const Segment = dynamic(() => import('@components/Segment'))
|
||||
const SEO = dynamic(() => import('@components/SEO'))
|
||||
const LongButton = dynamic(() => import('@components/LongButton'))
|
||||
const Advertisement = dynamic(() => import('@components/Advertisement'))
|
||||
const Tooltip = dynamic(() => import('@components/Tooltip'))
|
||||
const Markdown = dynamic(() => import ('@components/Markdown'))
|
||||
|
||||
const VoteBot: NextPage<VoteBotProps> = ({ data, user, csrfToken }) => {
|
||||
console.log(csrfToken)
|
||||
|
||||
@ -36,13 +36,13 @@ ${mainLicense}`} />
|
||||
Object.keys(packageJson.dependencies).concat(Object.keys(packageJson.devDependencies)).map(el=> <span key={el}><a className='text-blue-500 hover:text-blue-400' href={`https://npmjs.org/package/${el}`}>{el}</a> </span>)
|
||||
}
|
||||
{
|
||||
license.map(el=>
|
||||
<>
|
||||
license.map((el, i)=>
|
||||
<div key={i}>
|
||||
<h2 className='text-xl font-semibold my-3'>{el.dependencies.join(', ')}</h2>
|
||||
<Segment>
|
||||
<Markdown text={el.content} />
|
||||
</Segment>
|
||||
</>)
|
||||
</div>)
|
||||
}
|
||||
</p>
|
||||
</Docs>
|
||||
|
||||
@ -24,7 +24,7 @@ const Owner = dynamic(() => import('@components/Owner'))
|
||||
const Message = dynamic(() => import('@components/Message'))
|
||||
|
||||
const PendingBot: NextPage<PendingBotProps> = ({ data }) => {
|
||||
const [ isCopied, setCopied ] = useCopyClipboard(data.desc, {
|
||||
const [ isCopied, setCopied ] = useCopyClipboard(data?.desc, {
|
||||
successDuration: 1000
|
||||
})
|
||||
if(!data) return <NotFound />
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { Emoji, EmojiSyntax, Heading, ImageTag } from './Regex'
|
||||
import Twemoji from 'twemoji'
|
||||
import { KoreanbotsEmoji } from './Constants'
|
||||
import { emoji } from 'node-emoji'
|
||||
|
||||
export const anchorHeader = {
|
||||
type: 'output',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user