-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'OCD-4765' into development
- Loading branch information
Showing
6 changed files
with
376 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { useMutation } from 'react-query'; | ||
|
||
import { useAxios } from './axios'; | ||
|
||
const usePostUrlChecker = () => { | ||
const axios = useAxios(); | ||
return useMutation(async (data) => axios.post('urls/validate', data)); | ||
}; | ||
|
||
export default usePostUrlChecker; |
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
18 changes: 18 additions & 0 deletions
18
src/app/pages/administration/url-checker/url-checker-wrapper.jsx
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,18 @@ | ||
import React from 'react'; | ||
|
||
import ChplUrlChecker from './url-checker'; | ||
|
||
import AppWrapper from 'app-wrapper'; | ||
|
||
function ChplUrlCheckerWrapper() { | ||
return ( | ||
<AppWrapper> | ||
<ChplUrlChecker /> | ||
</AppWrapper> | ||
); | ||
} | ||
|
||
export default ChplUrlCheckerWrapper; | ||
|
||
ChplUrlCheckerWrapper.propTypes = { | ||
}; |
Oops, something went wrong.