Skip to content

Commit

Permalink
Reorder imports so they are _slighly_ prettier 🐈
Browse files Browse the repository at this point in the history
  • Loading branch information
FredrikAugust committed Apr 21, 2021
1 parent 3558914 commit fa003b2
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions src/components/pages/VisualisationEditor.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
import React, { Dispatch, SetStateAction, useEffect, useState } from 'react';
import { Button, CircleArrowLeftIcon, Pane, Text } from 'evergreen-ui';
import { useQuery } from '@apollo/client';

import { useParams } from 'react-router-dom';
import { useHistory } from 'react-router';

import { RootState } from '../../redux';
import { useSelector } from 'react-redux';

import { useQuery } from '@apollo/client';

import { AllMetadataResult, METADATA } from '../../queries/metadata';

import VisualisationPreview from '../molecules/VisualisationPreview';
import DataInfoBox from '../atoms/DatasetInfoBox';
import VisualisationSelector from '../atoms/VisualisationSelector';
import { friendlyNameForVisualisationType } from '../../utils/visualisationLabels';

import { VisualisationType } from '../../types/Metadata';
import { DashboardItemSize } from '../../types/VisualisationOption';
import { DataSourceVariables, defaultVariables } from '../../types/DataSource';

import { useHistory } from 'react-router';
import AddToDashboard from '../molecules/AddToDashboard';
import DataInfoBox from '../atoms/DatasetInfoBox';
import VisualisationSelector from '../atoms/VisualisationSelector';
import VisualisationParameterSelector from '../atoms/VisualisationParameterSelector';
import { useSelector } from 'react-redux';
import { RootState } from '../../redux';
import { DashboardItemSize } from '../../types/VisualisationOption';

import VisualisationPreview from '../molecules/VisualisationPreview';
import AddToDashboard from '../molecules/AddToDashboard';
import DataSourceOptions from '../molecules/DataSourceOptions';
import { defaultVariables, DataSourceVariables } from '../../types/DataSource';

import { Button, CircleArrowLeftIcon, Pane, Text } from 'evergreen-ui';

const VisualisationEditor: React.FC = () => {
const { loading, data, error } = useQuery<AllMetadataResult>(METADATA);
Expand Down

0 comments on commit fa003b2

Please sign in to comment.