Add column header to users page in dashboard

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2022-01-01 23:45:38 +01:00
parent 28b72dc01d
commit 4417b8010f
1 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ import { SimpleForm, TextInput } from 'soapbox/features/forms';
import { Set as ImmutableSet, OrderedSet as ImmutableOrderedSet, is } from 'immutable'; import { Set as ImmutableSet, OrderedSet as ImmutableOrderedSet, is } from 'immutable';
const messages = defineMessages({ const messages = defineMessages({
heading: { id: 'column.admin.users', defaultMessage: 'Users' },
empty: { id: 'admin.user_index.empty', defaultMessage: 'No users found.' }, empty: { id: 'admin.user_index.empty', defaultMessage: 'No users found.' },
searchPlaceholder: { id: 'admin.user_index.search_input_placeholder', defaultMessage: 'Who are you looking for?' }, searchPlaceholder: { id: 'admin.user_index.search_input_placeholder', defaultMessage: 'Who are you looking for?' },
}); });
@ -100,7 +101,7 @@ class UserIndex extends ImmutablePureComponent {
const showLoading = isLoading && accountIds.isEmpty(); const showLoading = isLoading && accountIds.isEmpty();
return ( return (
<Column> <Column heading={intl.formatMessage(messages.heading)}>
<SimpleForm style={{ paddingBottom: 0 }}> <SimpleForm style={{ paddingBottom: 0 }}>
<TextInput <TextInput
onChange={this.handleQueryChange} onChange={this.handleQueryChange}