@@ -30,7 +30,7 @@ const GroupPopover = (props: IGroupPopoverContainer) => {
|
||||
|
||||
const path = history.location.pathname;
|
||||
const shouldHideAction = matchPath(path, {
|
||||
path: ['/group/:groupId'],
|
||||
path: ['/groups/:groupId'],
|
||||
exact: true,
|
||||
});
|
||||
|
||||
@@ -88,7 +88,7 @@ const GroupPopover = (props: IGroupPopoverContainer) => {
|
||||
|
||||
{!shouldHideAction && (
|
||||
<div className='px-4'>
|
||||
<Link to={`/group/${group.id}`}>
|
||||
<Link to={`/groups/${group.id}`}>
|
||||
<Button type='button' theme='secondary' block>
|
||||
{intl.formatMessage(messages.action)}
|
||||
</Button>
|
||||
|
||||
@@ -119,7 +119,7 @@ const StatusActionBar: React.FC<IStatusActionBar> = ({
|
||||
const intl = useIntl();
|
||||
const history = useHistory();
|
||||
const dispatch = useAppDispatch();
|
||||
const match = useRouteMatch<{ groupId: string }>('/group/:groupId');
|
||||
const match = useRouteMatch<{ groupId: string }>('/groups/:groupId');
|
||||
|
||||
const { group } = useGroup((status.group as Group)?.id as string);
|
||||
const deleteGroupStatus = useDeleteGroupStatus(group as Group, status.id);
|
||||
|
||||
@@ -223,7 +223,7 @@ const Status: React.FC<IStatus> = (props) => {
|
||||
</Link>
|
||||
),
|
||||
group: (
|
||||
<Link to={`/group/${group.id}`} className='hover:underline'>
|
||||
<Link to={`/groups/${group.id}`} className='hover:underline'>
|
||||
<strong
|
||||
className='text-gray-800 dark:text-gray-200'
|
||||
dangerouslySetInnerHTML={{
|
||||
@@ -300,7 +300,7 @@ const Status: React.FC<IStatus> = (props) => {
|
||||
defaultMessage='Posted in {group}'
|
||||
values={{
|
||||
group: (
|
||||
<Link to={`/group/${group.id}`} className='hover:underline'>
|
||||
<Link to={`/groups/${group.id}`} className='hover:underline'>
|
||||
<bdi className='truncate'>
|
||||
<strong className='text-gray-800 dark:text-gray-200'>
|
||||
<span dangerouslySetInnerHTML={{ __html: group.display_name_html }} />
|
||||
|
||||
Reference in New Issue
Block a user