Add util to handle redirects. version bump.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mifi/ui-common",
|
"name": "@mifi/ui-common",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"author": "mifi (Mike Fitzpatrick)",
|
"author": "mifi (Mike Fitzpatrick)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
1
src/utils/responseRedirect.ts
Normal file
1
src/utils/responseRedirect.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export const responseRedirect = ({ location }: { location: string }) => (window.location.href = location);
|
||||||
Reference in New Issue
Block a user