mirror of
https://github.com/wassname/talk.git
synced 2026-08-01 13:00:55 +08:00
Adds emptystate.
This commit is contained in:
@@ -1,17 +1,27 @@
|
||||
import React from 'react';
|
||||
|
||||
// import I18n from 'coral-framework/modules/i18n/i18n';
|
||||
// import translations from 'coral-admin/src/translations.json';
|
||||
import I18n from 'coral-framework/modules/i18n/i18n';
|
||||
import translations from 'coral-admin/src/translations.json';
|
||||
const lang = new I18n(translations);
|
||||
|
||||
import styles from './Community.css';
|
||||
|
||||
// import EmptyCard from '../../components/EmptyCard';
|
||||
// const lang = new I18n(translations);
|
||||
import Loading from './Loading';
|
||||
import EmptyCard from '../../components/EmptyCard';
|
||||
|
||||
const FlaggedAccounts = ({isFetching}) => {
|
||||
const hasResults = false; // !isFetching && !!commenters.length;
|
||||
|
||||
const FlaggedAccounts = () => {
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
Flagged Accounts
|
||||
<div className={styles.mainContent}>
|
||||
{ isFetching && <Loading /> }
|
||||
{
|
||||
hasResults
|
||||
? <div></div>
|
||||
: <EmptyCard>{lang.t('community.no-flagged-accounts')}</EmptyCard>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -15,7 +15,8 @@
|
||||
"banned-user": "Banned User",
|
||||
"loading": "Loading results",
|
||||
"flaggedaccounts": "Account Flags",
|
||||
"people": "People"
|
||||
"people": "People",
|
||||
"no-flagged-accounts": "No flagged accounts in the queue."
|
||||
},
|
||||
"modqueue": {
|
||||
"likes": "likes",
|
||||
@@ -149,7 +150,8 @@
|
||||
"banned-user": "Usuario Suspendido",
|
||||
"loading": "Cargando resultados",
|
||||
"flaggedaccounts": "Cuentas Reportadas",
|
||||
"people": "Gente"
|
||||
"people": "Gente",
|
||||
"no-flagged-accounts": "No hay ninguna cuenta reportada."
|
||||
},
|
||||
"modqueue": {
|
||||
"likes": "gustos",
|
||||
|
||||
Reference in New Issue
Block a user