Skip to content

Commit

Permalink
feat: update meta-analysis spec creation
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoalee committed Apr 28, 2023
1 parent 8a55c48 commit ebb783a
Show file tree
Hide file tree
Showing 47 changed files with 1,121 additions and 1,127 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Box, Button } from '@mui/material';
import { ColorOptions } from 'index';

export enum ENavigationButton {
PREV = 'PREV',
Expand All @@ -12,6 +13,8 @@ export interface INavigationButtons {
nextButtonText?: string;
prevButtonStyle?: 'contained' | 'outlined' | 'text';
nextButtonStyle?: 'contained' | 'outlined' | 'text';
nextButtonColor?: ColorOptions;
prevButtonColor?: ColorOptions;

onButtonClick: (button: ENavigationButton) => void;
}
Expand All @@ -24,6 +27,8 @@ const NavigationButtons: React.FC<INavigationButtons> = (props) => {
nextButtonText = 'Next',
prevButtonStyle = 'outlined',
nextButtonStyle = 'outlined',
nextButtonColor = 'primary',
prevButtonColor = 'primary',
onButtonClick,
} = props;

Expand All @@ -34,6 +39,7 @@ const NavigationButtons: React.FC<INavigationButtons> = (props) => {
variant={prevButtonStyle}
onClick={() => onButtonClick(ENavigationButton.PREV)}
sx={{ fontSize: '1rem' }}
color={prevButtonColor}
>
{prevButtonText}
</Button>
Expand All @@ -42,6 +48,7 @@ const NavigationButtons: React.FC<INavigationButtons> = (props) => {
variant={nextButtonStyle}
onClick={() => onButtonClick(ENavigationButton.NEXT)}
sx={{ fontSize: '1rem' }}
color={nextButtonColor}
>
{nextButtonText}
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import CurationStubStudyDraggableContainer, {
} from 'components/CurationComponents/CurationStubStudy/CurationStubStudyDraggableContainer';
import CurationColumnStyles from './CurationColumn.styles';
import CurationDialog from 'components/Dialogs/CurationDialog/CurationDialog';
import { ENeurosynthTagIds } from 'components/ProjectStepComponents/CurationStep/CurationStep';
import {
useProjectCurationColumn,
useProjectCurationExclusionTags,
Expand All @@ -26,6 +25,7 @@ import {
import React from 'react';
import { FixedSizeList, ListChildComponentProps } from 'react-window';
import useGetWindowHeight from 'hooks/useGetWindowHeight';
import { ENeurosynthTagIds } from 'pages/Projects/ProjectPage/ProjectStore.helpers';

export interface ICurationColumn {
name: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ICurationStubStudy } from 'components/CurationComponents/CurationStubSt
import { v4 as uuidv4 } from 'uuid';
import { ISource } from 'hooks/requests/useGetProjects';
import IdentificationSourcePopup from 'components/CurationComponents/SelectorPopups/SourcePopup/SourcePopup';
import { ENeurosynthSourceIds } from 'components/ProjectStepComponents/CurationStep/CurationStep';
import { ENeurosynthSourceIds } from 'pages/Projects/ProjectPage/ProjectStore.helpers';
const Cite = require('citation-js');
require('@citation-js/plugin-enw');
require('@citation-js/plugin-bibtex');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import CheckCircleOutlineIcon from '@mui/icons-material/CheckCircleOutline';
import ErrorOutlineIcon from '@mui/icons-material/ErrorOutline';
import { defaultExclusionTags } from 'pages/Projects/ProjectPage/ProjectStore.helpers';
import { ENeurosynthTagIds } from 'components/ProjectStepComponents/CurationStep/CurationStep';
import { ENeurosynthTagIds } from 'pages/Projects/ProjectPage/ProjectStore.helpers';
import { useHistory } from 'react-router-dom';
import ReadOnlyStubSummary from '../ReadOnlyStubSummary';
import { ICurationColumn } from 'components/CurationComponents/CurationColumn/CurationColumn';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { v4 as uuidv4 } from 'uuid';
import HighlightOffIcon from '@mui/icons-material/HighlightOff';
import ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown';
import NeurosynthPopper from 'components/NeurosynthPopper/NeurosynthPopper';
import { ENeurosynthTagIds } from 'components/ProjectStepComponents/CurationStep/CurationStep';
import { ENeurosynthTagIds } from 'pages/Projects/ProjectPage/ProjectStore.helpers';
import LoadingButton from 'components/Buttons/LoadingButton/LoadingButton';
import {
useCreateNewExclusion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { SystemStyleObject } from '@mui/system';
import { ITag } from 'hooks/requests/useGetProjects';
import { useEffect, useState } from 'react';
import { v4 as uuidv4 } from 'uuid';
import { ENeurosynthTagIds } from 'components/ProjectStepComponents/CurationStep/CurationStep';
import { ENeurosynthTagIds } from 'pages/Projects/ProjectPage/ProjectStore.helpers';
import {
useCreateNewCurationInfoTag,
useProjectCurationInfoTags,
Expand Down

This file was deleted.

Loading

0 comments on commit ebb783a

Please sign in to comment.