mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Remove formatDevelopmentalCrownType function
Removed the formatDevelopmentalCrownType function from SpeciesTable component.
This commit is contained in:
@@ -43,26 +43,6 @@ const createSynonymAwareFilter = (
|
||||
}
|
||||
}
|
||||
|
||||
const formatDevelopmentalCrownType = (species: Species): string => {
|
||||
const segments: Array<string | null> = [
|
||||
species.cusp_shape,
|
||||
species.cusp_count_buccal,
|
||||
species.cusp_count_lingual,
|
||||
species.loph_count_lon,
|
||||
species.loph_count_trs,
|
||||
]
|
||||
|
||||
return segments
|
||||
.map(segment => {
|
||||
if (segment == null || segment === '') {
|
||||
return '-'
|
||||
}
|
||||
|
||||
return segment
|
||||
})
|
||||
.join('')
|
||||
}
|
||||
|
||||
export const SpeciesTable = ({ selectorFn }: { selectorFn?: (id: Species) => void }) => {
|
||||
const [selectedSpecies, setSelectedSpecies] = useState<string | undefined>()
|
||||
const [modalOpen, setModalOpen] = useState<boolean>(false)
|
||||
|
||||
Reference in New Issue
Block a user