Skip to content

Commit 85e9f2a

Browse files
committed
feat: resolve merge conflicts
2 parents 11ac88a + 666496f commit 85e9f2a

39 files changed

+2818
-603
lines changed

compose/neurosynth-frontend/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<link rel="preload" as="image" href="/static/brain-analysis.png" type="image/png">
1919

20-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/handsontable.full.min.css" />
20+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/handsontable.full.min.css" crossorigin="anonymous" />
2121

2222
<link
2323
rel="stylesheet"

compose/neurosynth-frontend/package-lock.json

Lines changed: 229 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compose/neurosynth-frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"@mui/styles": "^5.5.1",
2020
"@mui/system": "^5.5.1",
2121
"@mui/x-data-grid": "^5.10.0",
22+
"@niivue/niivue": "^0.46.0",
2223
"@reactour/tour": "^2.10.3",
2324
"@sentry/react": "^7.119.2",
2425
"@tanstack/react-table": "^8.20.5",

compose/neurosynth-frontend/src/components/NeurosynthAutocomplete/NeurosynthAutocomplete.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
import ErrorIcon from '@mui/icons-material/Error';
2-
import {
3-
Autocomplete,
4-
AutocompleteRenderOptionState,
5-
Box,
6-
FilterOptionsState,
7-
TextField,
8-
} from '@mui/material';
2+
import { Autocomplete, AutocompleteRenderOptionState, Box, FilterOptionsState, TextField } from '@mui/material';
93
import { SystemStyleObject } from '@mui/system';
104
import ProgressLoader from 'components/ProgressLoader';
115
import { useInputValidation } from '../../hooks';
@@ -38,6 +32,7 @@ interface INeurosynthAutocomplete<T> {
3832
inputPropsSx?: SystemStyleObject;
3933
filterOptions?: (options: T[], state: FilterOptionsState<T>) => T[];
4034
groupBy?: (option: T) => string;
35+
errorText?: string;
4136
}
4237

4338
const NeurosynthAutocomplete = <T,>(props: INeurosynthAutocomplete<T>) => {
@@ -63,6 +58,7 @@ const NeurosynthAutocomplete = <T,>(props: INeurosynthAutocomplete<T>) => {
6358
size = 'small',
6459
inputPropsSx = {},
6560
groupBy = undefined,
61+
errorText = 'There was an error',
6662
} = props;
6763

6864
const handleOnChange = (_event: any, newVal: T | null, _reason: any) => {
@@ -96,7 +92,7 @@ const NeurosynthAutocomplete = <T,>(props: INeurosynthAutocomplete<T>) => {
9692
<>
9793
{isError && (
9894
<Box sx={{ color: 'error.main', display: 'flex' }}>
99-
There was an error
95+
{errorText}
10096
<ErrorIcon sx={{ marginLeft: '5px' }} />
10197
</Box>
10298
)}

compose/neurosynth-frontend/src/components/StateHandlerComponent/StateHandlerComponent.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ export interface IStateHandlerComponent {
1313

1414
const StateHandlerComponent: React.FC<IStateHandlerComponent> = (props) => {
1515
if (props.isError) {
16-
return (
17-
<Typography sx={{ color: 'error.main' }}>
18-
{props.errorMessage || 'There was an error'}
19-
</Typography>
20-
);
16+
return <Typography sx={{ color: 'error.main' }}>{props.errorMessage || 'There was an error'}</Typography>;
2117
}
2218

2319
if (props.isLoading) {

0 commit comments

Comments
 (0)