Skip to content

Commit

Permalink
Works without vertical flex
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jan 25, 2023
1 parent 3ca1ce2 commit e850b4a
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react'
import { FileSelector } from '@jbrowse/core/ui'
import { AbstractRootModel } from '@jbrowse/core/util'
import { Paper } from '@mui/material'
import { makeStyles } from 'tss-react/mui'
import { getRoot } from 'mobx-state-tree'
Expand All @@ -10,9 +11,7 @@ import { AddTrackModel } from '../model'

const useStyles = makeStyles()(theme => ({
paper: {
display: 'flex',
flexDirection: 'column',
padding: theme.spacing(1),
padding: theme.spacing(2),
},
spacer: {
height: theme.spacing(8),
Expand All @@ -21,8 +20,7 @@ const useStyles = makeStyles()(theme => ({

function TrackSourceSelect({ model }: { model: AddTrackModel }) {
const { classes } = useStyles()
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const rootModel = getRoot<any>(model)
const rootModel = getRoot<AbstractRootModel>(model)

return (
<Paper className={classes.paper}>
Expand Down

0 comments on commit e850b4a

Please sign in to comment.