Add column header to users page in dashboard
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
28b72dc01d
commit
4417b8010f
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue