Add setting to manage visibility of vote count, vote button and decide root page (#197)

This commit is contained in:
Riccardo Graziosi
2023-02-05 11:55:38 +01:00
committed by GitHub
parent d4242dd78e
commit e7335f5622
35 changed files with 246 additions and 48 deletions

View File

@@ -10,6 +10,7 @@ import IPostStatus from '../../interfaces/IPostStatus';
import { Store } from 'redux';
import { State } from '../../reducers/rootReducer';
import ITenantSetting from '../../interfaces/ITenantSetting';
interface Props {
postId: number;
@@ -19,6 +20,7 @@ interface Props {
isPowerUser: boolean;
currentUserFullName: string;
currentUserEmail: string;
tenantSetting: ITenantSetting;
authenticityToken: string;
}
@@ -40,6 +42,7 @@ class PostRoot extends React.Component<Props> {
isPowerUser,
currentUserFullName,
currentUserEmail,
tenantSetting,
authenticityToken
} = this.props;
@@ -54,6 +57,7 @@ class PostRoot extends React.Component<Props> {
isPowerUser={isPowerUser}
currentUserFullName={currentUserFullName}
currentUserEmail={currentUserEmail}
tenantSetting={tenantSetting}
authenticityToken={authenticityToken}
/>
</Provider>