mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-12 03:54:16 +00:00
33 lines
898 B
JavaScript
Executable File
33 lines
898 B
JavaScript
Executable File
import React from "react"
|
|
import { Translation } from "react-i18next"
|
|
|
|
import { PagePanelWithNavMenu } from "@components/PagePanels"
|
|
|
|
import Tabs from "./home/tabs"
|
|
|
|
export default class Home extends React.Component {
|
|
render() {
|
|
return <PagePanelWithNavMenu
|
|
tabs={Tabs}
|
|
extraItems={[
|
|
{
|
|
key: "create",
|
|
icon: "PlusCircle",
|
|
label: <Translation>{(t) => t("Create")}</Translation>,
|
|
props: {
|
|
type: "primary",
|
|
onClick: app.controls.openPostCreator
|
|
}
|
|
},
|
|
]}
|
|
onTabChange={() => {
|
|
app.layout.scrollTo({
|
|
top: 0,
|
|
})
|
|
}}
|
|
useSetQueryType
|
|
transition
|
|
masked
|
|
/>
|
|
}
|
|
} |