Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukthiw committed Mar 19, 2024
1 parent c2066ae commit f5fb408
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion Eplant/UI/Layout/ViewContainer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ export function ViewContainer<T, S, A>({
),
[view.id, gene?.id, loading, activeData, state, dispatch]
)

return (
<Box {...props} display='flex' flexDirection='column'>
<Modal open={viewingCitations} onClose={() => setViewingCitations(false)}>
Expand Down
1 change: 0 additions & 1 deletion Eplant/View/viewData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ export function useViewData<T, S, A>(
activeData: data ?? null,
loading: false,
}
console.log(newData)

setViewData(newData)
viewDataStorage.set(key, newData)
Expand Down
6 changes: 1 addition & 5 deletions Eplant/views/CellEFP/CellEFPDataObject/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,14 @@ export const CellEFPDataObject: CellEFPDataObject = {
'-' +
useMemo(() => Math.random().toString(16).slice(3), [])
const styles = useStyles(id, data.viewData, 'absolute')
console.log(styles)
useEffect(() => {
const el = document.createElement('style')
el.innerHTML = styles
document.head.appendChild(el)
return () => {
document.head.removeChild(el)
}
}, [data, styles])

}, [data.viewData.groups, styles])
// Add tooltips to svg
const [svgElements, setSvgElements] = useState<
{
Expand All @@ -157,7 +155,6 @@ export const CellEFPDataObject: CellEFPDataObject = {
tissue: EFPTissue
}[]
>([])

const svgDiv = useMemo(() => {
return (
<div
Expand Down Expand Up @@ -187,7 +184,6 @@ export const CellEFPDataObject: CellEFPDataObject = {
)
setSvgElements(elements as any)
}, [data.viewData.groups, id, svgDiv])

if (!svg) {
return (
<div
Expand Down
1 change: 0 additions & 1 deletion Eplant/views/CellEFP/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ const CellEFP: View<
loadEvent(totalLoaded)
}
)

return {
activeView: CellEFP.id,
transform: {
Expand Down
1 change: 0 additions & 1 deletion Eplant/views/eFP/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ export default class EFP implements View<EFPData, EFPState, EFPAction> {
)
setSvgElements(elements as any)
}, [props.activeData.groups, id, svgDiv])

if (!svg) {
return (
<div
Expand Down

0 comments on commit f5fb408

Please sign in to comment.