forked from polka_billy/porridger
Fixed details dialog size Added map location setting by click Reorganized hooks and components imports with index.js Removed orphane error indication on homepage
13 lines
346 B
JavaScript
13 lines
346 B
JavaScript
import { colors, lines } from '../assets/metro'
|
|
import { lineByName } from '../utils/metro'
|
|
|
|
function LineDot({ station }) {
|
|
const line = lineByName(station)
|
|
const lineTitle = lines[line]
|
|
const color = colors[line]
|
|
|
|
return <span title={`${lineTitle} ветка`} style={{ color: color }}>⬤</span>
|
|
}
|
|
|
|
export default LineDot
|