Rename SelectWithSelect
This is only used for ExtendedMastery and is hardcoded for ItemSkill types
This commit is contained in:
parent
7b7ef1aebc
commit
6777804f57
3 changed files with 5 additions and 8 deletions
|
|
@ -26,7 +26,7 @@ const defaultProps = {
|
|||
selectDisabled: false,
|
||||
}
|
||||
|
||||
const SelectWithInput = ({
|
||||
const ExtendedMasterySelect = ({
|
||||
name,
|
||||
object,
|
||||
dataSet,
|
||||
|
|
@ -70,9 +70,6 @@ const SelectWithInput = ({
|
|||
function onClose() {
|
||||
setLeftSelectOpen(false)
|
||||
setRightSelectOpen(false)
|
||||
|
||||
setCurrentItemSkill(undefined)
|
||||
setCurrentItemValue(0)
|
||||
}
|
||||
|
||||
// Methods: Rendering
|
||||
|
|
@ -161,6 +158,6 @@ const SelectWithInput = ({
|
|||
)
|
||||
}
|
||||
|
||||
SelectWithInput.defaultProps = defaultProps
|
||||
ExtendedMasterySelect.defaultProps = defaultProps
|
||||
|
||||
export default SelectWithInput
|
||||
export default ExtendedMasterySelect
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
import React, { useEffect, useState } from 'react'
|
||||
|
||||
// UI dependencies
|
||||
import SelectWithSelect from '~components/SelectWithSelect'
|
||||
import ExtendedMasterySelect from '~components/ExtendedMasterySelect'
|
||||
|
||||
// Data
|
||||
import { overMastery } from '~data/overMastery'
|
||||
|
|
@ -127,7 +127,7 @@ const RingSelect = ({ gridCharacter, sendValues }: Props) => {
|
|||
const ringIndex = i + 1
|
||||
const ringStat = rings[ringIndex]
|
||||
return (
|
||||
<SelectWithSelect
|
||||
<ExtendedMasterySelect
|
||||
name={`ring-${ringIndex}`}
|
||||
object="ring"
|
||||
key={`ring-${ringIndex}`}
|
||||
|
|
|
|||
Loading…
Reference in a new issue