mirror of
https://github.com/wassname/talk.git
synced 2026-07-02 16:32:10 +08:00
27 lines
867 B
TypeScript
27 lines
867 B
TypeScript
import { Router, withRouter } from "found";
|
|
import React, { Component } from "react";
|
|
import Navigation from "../components/Navigation";
|
|
|
|
interface NavigationContainerProps {
|
|
router: Router;
|
|
}
|
|
|
|
class NavigationContainer extends Component<NavigationContainerProps> {
|
|
private goToModerate = () => this.props.router.replace("/admin/moderate");
|
|
private goToCommunity = () => this.props.router.replace("/admin/community");
|
|
private goToStories = () => this.props.router.replace("/admin/stories");
|
|
private goToConfigure = () => this.props.router.replace("/admin/configures");
|
|
public render() {
|
|
return (
|
|
<Navigation
|
|
goToModerate={this.goToModerate}
|
|
goToCommunity={this.goToCommunity}
|
|
goToStories={this.goToStories}
|
|
goToConfigure={this.goToConfigure}
|
|
/>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default withRouter(NavigationContainer);
|