Clean code
This commit is contained in:
@@ -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" />
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -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" />
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -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" />
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user