* 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
30 lines
635 B
TypeScript
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
|