Switched category data struct from Map to object

Moved lineByName function
This commit is contained in:
2023-07-13 18:17:57 +03:00
parent 6a0c4c9dac
commit 9437c44054
8 changed files with 46 additions and 52 deletions

View File

@ -1,5 +1,4 @@
import { colors, lineNames } from '../assets/metro'
import { lineByName } from '../utils/metro'
import { colors, lineNames, lineByName } from '../assets/metro'
function LineDot({ station }: { station: string }) {
const line = lineByName(station)