Clean code

This commit is contained in:
Sakura Knoll
2023-07-13 19:55:32 +09:00 Unverified
parent 7a59ff0196
commit 53396776df
3 changed files with 3 additions and 30 deletions
@@ -3,9 +3,8 @@ import { Box, Card, Flex, Heading, Link } from 'theme-ui'
import FormattedText from '../../../components/v2-pre/FormattedText' import FormattedText from '../../../components/v2-pre/FormattedText'
import { formatSubSkillInfo } from '../../../lib/v2-pre/data/formatText' import { formatSubSkillInfo } from '../../../lib/v2-pre/data/formatText'
import { loadStigmaData, loadStigmataSetCatalog, loadStigmataSetData } from '../../../lib/v2-pre/server/loadData' import { loadStigmaData, loadStigmataSetCatalog, loadStigmataSetData } from '../../../lib/v2-pre/server/loadData'
import { RootStigma, SkillTagItem, StigmataSet } from '../../../lib/v2-pre/data/types' import { RootStigma, StigmataSet } from '../../../lib/v2-pre/data/types'
import { Fragment } from 'react' import { Fragment } from 'react'
import TagIcon from '../../../components/v2-pre/TagIcon'
import StigmaIcon from '../../../components/v2-pre/StigmaIcon' import StigmaIcon from '../../../components/v2-pre/StigmaIcon'
import StigmaFigureImage from '../../../components/v2-pre/StigmaFigureImage' import StigmaFigureImage from '../../../components/v2-pre/StigmaFigureImage'
@@ -177,11 +176,3 @@ export async function getStaticPaths() {
fallback: false fallback: false
} }
} }
interface SkillTagBoxProps {
tag: SkillTagItem
}
const SkillTagItem = ({ tag }: SkillTagBoxProps) => {
return <TagIcon type={tag.type} strength={tag.strength} comment={tag.comment} size="sm" />
}
+1 -10
View File
@@ -3,9 +3,8 @@ import { Box, Card, Flex, Heading, Link } from 'theme-ui'
import FormattedText from '../../../components/v2-pre/FormattedText' import FormattedText from '../../../components/v2-pre/FormattedText'
import { formatSubSkillInfo, replaceNewLine } from '../../../lib/v2-pre/data/formatText' import { formatSubSkillInfo, replaceNewLine } from '../../../lib/v2-pre/data/formatText'
import { loadStigmaData, loadStigmataCatalog, loadStigmataSetData } from '../../../lib/v2-pre/server/loadData' import { loadStigmaData, loadStigmataCatalog, loadStigmataSetData } from '../../../lib/v2-pre/server/loadData'
import { RootStigma, SkillTagItem, StigmataSetCatalogItem } from '../../../lib/v2-pre/data/types' import { RootStigma, StigmataSetCatalogItem } from '../../../lib/v2-pre/data/types'
import { Fragment } from 'react' import { Fragment } from 'react'
import TagIcon from '../../../components/v2-pre/TagIcon'
import { getStigmaTypeLabel } from '../../../lib/v2-pre/data/text' import { getStigmaTypeLabel } from '../../../lib/v2-pre/data/text'
import StigmaTypeIcon from '../../../components/v2-pre/StigmaTypeIcon' import StigmaTypeIcon from '../../../components/v2-pre/StigmaTypeIcon'
import StigmaIcon from '../../../components/v2-pre/StigmaIcon' import StigmaIcon from '../../../components/v2-pre/StigmaIcon'
@@ -165,11 +164,3 @@ export async function getStaticPaths() {
fallback: false fallback: false
} }
} }
interface SkillTagBoxProps {
tag: SkillTagItem
}
const SkillTagItem = ({ tag }: SkillTagBoxProps) => {
return <TagIcon type={tag.type} strength={tag.strength} comment={tag.comment} size="sm" />
}
+1 -10
View File
@@ -3,9 +3,8 @@ import { Box, Card, Flex, Heading } from 'theme-ui'
import FormattedText from '../../../components/v2-pre/FormattedText' import FormattedText from '../../../components/v2-pre/FormattedText'
import { formatSubSkillInfo, replaceNewLine } from '../../../lib/v2-pre/data/formatText' import { formatSubSkillInfo, replaceNewLine } from '../../../lib/v2-pre/data/formatText'
import { loadWeaponCatalog, loadWeaponData } from '../../../lib/v2-pre/server/loadData' import { loadWeaponCatalog, loadWeaponData } from '../../../lib/v2-pre/server/loadData'
import { RootWeaponData, SkillTagItem } from '../../../lib/v2-pre/data/types' import { RootWeaponData } from '../../../lib/v2-pre/data/types'
import { Fragment } from 'react' import { Fragment } from 'react'
import TagIcon from '../../../components/v2-pre/TagIcon'
import { getWeaponTypeLabel } from '../../../lib/v2-pre/data/text' import { getWeaponTypeLabel } from '../../../lib/v2-pre/data/text'
import WeaponTypeIcon from '../../../components/v2-pre/WeaponTypeIcon' import WeaponTypeIcon from '../../../components/v2-pre/WeaponTypeIcon'
import WeaponIcon from '../../../components/v2-pre/WeaponIcon' import WeaponIcon from '../../../components/v2-pre/WeaponIcon'
@@ -105,11 +104,3 @@ export async function getStaticPaths() {
fallback: false fallback: false
} }
} }
interface SkillTagBoxProps {
tag: SkillTagItem
}
const SkillTagItem = ({ tag }: SkillTagBoxProps) => {
return <TagIcon type={tag.type} strength={tag.strength} comment={tag.comment} size="sm" />
}