Groups fixes

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-06-23 19:29:18 +02:00
parent b03256b53b
commit e82b9bc579
18 changed files with 29 additions and 29 deletions

View File

@@ -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>

View File

@@ -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);

View File

@@ -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 }} />