-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat 709 add progress bar to edit study page with the ability to swit…
…ch between different lists (#832) * feat: add inital wireframes proposal * feat: fixes * fix: merge conflicts * feat: update edit study page * feat: finished edit study page * feat: added feedback * fix: feedback updats * feat: update with feedback * chore: add initial test files * fix: finished tests * fix: tests * fix: lowercase to uppercase * replace mark with set
- Loading branch information
Showing
64 changed files
with
2,664 additions
and
645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const useSnackbar = jest.fn().mockReturnValue({ | ||
enqueueSnackbar: jest.fn(), | ||
}); | ||
|
||
export { useSnackbar }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const useQueryClient = jest.fn().mockReturnValue({ | ||
invalidateQueries: jest.fn(), | ||
}); | ||
|
||
const useQuery = jest.fn().mockReturnValue({ | ||
data: null, | ||
isLoading: false, | ||
isError: false, | ||
}); | ||
|
||
export { useQueryClient, useQuery }; |
9 changes: 0 additions & 9 deletions
9
compose/neurosynth-frontend/src/__mocks__/react-router-dom.ts
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
compose/neurosynth-frontend/src/__mocks__/react-router-dom.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { NavigateProps } from 'react-router-dom'; | ||
|
||
const useParams = jest.fn().mockReturnValue({ | ||
projectId: 'test-project-id', | ||
}); | ||
|
||
const useNavigate = jest.fn().mockReturnValue(jest.fn()); | ||
|
||
const useLocation = jest.fn().mockReturnValue({ | ||
location: { | ||
search: '', | ||
}, | ||
}); | ||
|
||
const Navigate = ({ to, replace, state }: NavigateProps) => { | ||
return ( | ||
<> | ||
<div data-testid="to">{to}</div> | ||
<div data-testid="replace">{replace}</div> | ||
<div data-testid="state">{JSON.stringify(state)}</div> | ||
</> | ||
); | ||
}; | ||
|
||
export { useNavigate, useLocation, useParams, Navigate }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.