mirror of
https://github.com/urbit/shrub.git
synced 2025-01-03 01:54:43 +03:00
NewGroup: fix redirect
This commit is contained in:
parent
bb03b6f278
commit
840c3bfb98
@ -6,7 +6,7 @@ import {
|
|||||||
import { Enc, GroupPolicy } from '@urbit/api';
|
import { Enc, GroupPolicy } from '@urbit/api';
|
||||||
import { Form, Formik, FormikHelpers } from 'formik';
|
import { Form, Formik, FormikHelpers } from 'formik';
|
||||||
import React, { ReactElement, useCallback } from 'react';
|
import React, { ReactElement, useCallback } from 'react';
|
||||||
import { RouteComponentProps } from 'react-router-dom';
|
import { RouteComponentProps, useHistory } from 'react-router-dom';
|
||||||
import * as Yup from 'yup';
|
import * as Yup from 'yup';
|
||||||
import GlobalApi from '~/logic/api/global';
|
import GlobalApi from '~/logic/api/global';
|
||||||
import { useWaitForProps } from '~/logic/lib/useWaitForProps';
|
import { useWaitForProps } from '~/logic/lib/useWaitForProps';
|
||||||
@ -32,7 +32,8 @@ interface NewGroupProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function NewGroup(props: NewGroupProps & RouteComponentProps): ReactElement {
|
export function NewGroup(props: NewGroupProps & RouteComponentProps): ReactElement {
|
||||||
const { api, history } = props;
|
const { api } = props;
|
||||||
|
const history = useHistory();
|
||||||
const initialValues: FormSchema = {
|
const initialValues: FormSchema = {
|
||||||
title: '',
|
title: '',
|
||||||
description: '',
|
description: '',
|
||||||
|
Loading…
Reference in New Issue
Block a user