Fix bug with slug in Group Media
This commit is contained in:
parent
768fa1c4eb
commit
0f29c5673c
1 changed files with 7 additions and 4 deletions
|
@ -1,6 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { useParams } from 'react-router-dom';
|
||||
|
||||
import { openModal } from 'soapbox/actions/modals';
|
||||
import LoadMore from 'soapbox/components/load-more';
|
||||
|
@ -13,10 +12,14 @@ import MediaItem from '../account-gallery/components/media-item';
|
|||
|
||||
import type { Attachment, Status } from 'soapbox/types/entities';
|
||||
|
||||
const GroupGallery = () => {
|
||||
const dispatch = useAppDispatch();
|
||||
interface IGroupGallery {
|
||||
params: { groupId: string }
|
||||
}
|
||||
|
||||
const { groupId } = useParams<{ groupId: string }>();
|
||||
const GroupGallery: React.FC<IGroupGallery> = (props) => {
|
||||
const { groupId } = props.params;
|
||||
|
||||
const dispatch = useAppDispatch();
|
||||
|
||||
const { group, isLoading: groupIsLoading } = useGroup(groupId);
|
||||
|
||||
|
|
Loading…
Reference in a new issue