ui(admin): fix egg delete redirect

This commit is contained in:
Matthew Penner 2021-09-18 12:05:19 -06:00
parent b125830859
commit b2d3aed520
No known key found for this signature in database
GPG key ID: 030E4AB751DC756F

View file

@ -260,7 +260,7 @@ export default function EggSettingsContainer ({ egg }: { egg: Egg }) {
<div css={tw`flex flex-row`}> <div css={tw`flex flex-row`}>
<EggDeleteButton <EggDeleteButton
eggId={egg.id} eggId={egg.id}
onDeleted={() => history.push('/admin/eggs')} onDeleted={() => history.push('/admin/nests')}
/> />
<Button type="submit" size="small" css={tw`ml-auto`} disabled={isSubmitting || !isValid}> <Button type="submit" size="small" css={tw`ml-auto`} disabled={isSubmitting || !isValid}>
Save Changes Save Changes