mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 18:01:32 +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 { Form, Formik, FormikHelpers } from 'formik';
|
||||
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 GlobalApi from '~/logic/api/global';
|
||||
import { useWaitForProps } from '~/logic/lib/useWaitForProps';
|
||||
@ -32,7 +32,8 @@ interface NewGroupProps {
|
||||
}
|
||||
|
||||
export function NewGroup(props: NewGroupProps & RouteComponentProps): ReactElement {
|
||||
const { api, history } = props;
|
||||
const { api } = props;
|
||||
const history = useHistory();
|
||||
const initialValues: FormSchema = {
|
||||
title: '',
|
||||
description: '',
|
||||
|
Loading…
Reference in New Issue
Block a user