Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
bump @mui/lab, TreeView and TreeItem moved to @mui/x-tree-view
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvatt committed Jan 15, 2024
1 parent a58147e commit 59f5c86
Show file tree
Hide file tree
Showing 6 changed files with 438 additions and 223 deletions.
12 changes: 6 additions & 6 deletions components/dataproducts/dataset/datasetSourceForm.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useContext, useState } from 'react'
import TreeView from '@mui/lab/TreeView'
import { TreeView } from '@mui/x-tree-view/TreeView';
import {
FieldErrors,
FieldValues,
Expand Down Expand Up @@ -62,11 +62,11 @@ export const DataproductSourceForm = ({
onNodeToggle={(x, n) => setActivePaths(n)}
>
{teamProjects?.map((projectID) => (
<Project
key={projectID}
projectID={projectID}
activePaths={activePaths}
/>
<Project
key={projectID}
projectID={projectID}
activePaths={activePaths}
/>
))}
</TreeView>
{errors.bigquery && (
Expand Down
2 changes: 1 addition & 1 deletion components/dataproducts/datasource/dataset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
useGcpGetTablesLazyQuery,
} from '../../../lib/schema/graphql'

import { TreeItem } from '@mui/lab'
import { TreeItem } from '@mui/x-tree-view/TreeItem';

import { Loader } from '@navikt/ds-react'
import { ExpandFilled, NextFilled } from '@navikt/ds-icons'
Expand Down
2 changes: 1 addition & 1 deletion components/dataproducts/datasource/project.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TreeItem } from '@mui/lab'
import { TreeItem } from '@mui/x-tree-view/TreeItem';
import { Loader } from '@navikt/ds-react'
import { useGcpGetDatasetsLazyQuery } from '../../../lib/schema/graphql'
import { ExpandFilled, NextFilled } from '@navikt/ds-icons'
Expand Down
7 changes: 3 additions & 4 deletions components/lib/tagsSelector.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Close } from '@navikt/ds-icons'
import { Alert, Label } from '@navikt/ds-react'
import * as React from 'react'
import { useContext } from 'react'
Expand All @@ -24,19 +23,19 @@ const styles: StylesConfig<TagOption, true> = {
...provided,
border: state.isFocused ? '3px solid #00347d' : '1px solid',
}),
multiValue: (styles, { data }) => ({
multiValue: (styles: object, { data }) => ({
...styles,
padding: '0 0 0 0 !important',
margin: '0 0 0 0 !important',
width: '0px',
}),
multiValueLabel: (styles, { data }) => ({
multiValueLabel: (styles: object, { data }) => ({
...styles,
padding: '0 0 0 0 !important',
margin: '0 0 0 0 !important',
width: '0px',
}),
multiValueRemove: (styles, { data }) => ({
multiValueRemove: (styles: object, { data }) => ({
...styles,
padding: '0 0 0 0 !important',
margin: '0 0 0 0 !important',
Expand Down
Loading

0 comments on commit 59f5c86

Please sign in to comment.