hensei-web/components/weapon/WeaponLabelIcon/index.tsx
Justin Edmund b50ea1fa31
(Hotfix) Popover and hovercard fixes (#379)
* Fix job accessory popover, so shields and manatura can be selected
again
* Don't show AX skill section in weapon hovercard if no AX skill is set
* Center uncap indicator under item image and fix hovercard header
layout
* Fix a bug that prevented all ring bonuses from displaying in hovercard
* Fix transcendence_step being set to 0 when updating a character's
masteries
* Fix weapon modal so you can set AX skills on weapons with rupee or exp
gain
* Ensure job accessory and transcendence popovers open/close properly
2023-09-01 16:13:39 -07:00

30 lines
635 B
TypeScript

import React from 'react'
import { useRouter } from 'next/router'
import classNames from 'classnames'
import styles from './index.module.scss'
interface Props {
labelType: string
size: 'small' | 'normal'
}
const WeaponLabelIcon = (props: Props) => {
const router = useRouter()
const classes = classNames({
[styles.icon]: true,
[styles.small]: props.size === 'small',
[styles[props.labelType]]: true,
[styles.en]: router.locale === 'en',
[styles.ja]: router.locale === 'ja',
})
return <i className={classes} />
}
WeaponLabelIcon.defaultProps = {
size: 'normal',
}
export default WeaponLabelIcon