Rename strenghts to features

This commit is contained in:
Sakura Knoll
2022-01-01 21:18:25 +09:00 Unverified
parent d7d94f2ba2
commit bd4e426a96
84 changed files with 96 additions and 107 deletions
@@ -1,5 +1,5 @@
import { Flex, Text } from '@theme-ui/components'
import { battlesuitStrengths } from '../../lib/honkai3rd/battlesuits'
import { battlesuitFeatures } from '../../lib/honkai3rd/battlesuits'
import SquareImageBox from './SquareImageBox'
interface BattlesuitFeatureLabelProps {
@@ -7,8 +7,8 @@ interface BattlesuitFeatureLabelProps {
}
const BattlesuitFeatureLabel = ({ feature }: BattlesuitFeatureLabelProps) => {
const featureData = battlesuitStrengths.find(
(strength) => strength.value === feature
const featureData = battlesuitFeatures.find(
(aFeature) => aFeature.value === feature
)
if (featureData == null) {
return <Text>{feature}</Text>