mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Add setting to manage visibility of vote count, vote button and decide root page (#197)
This commit is contained in:
committed by
GitHub
parent
d4242dd78e
commit
e7335f5622
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user