Merge pull request #40 from LemmyNet/change_join_to_instances

Rename join to instances. Fixes #35
This commit is contained in:
Nutomic 2021-03-26 13:18:49 +00:00 committed by GitHub
commit c721631db4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@ const title = i18n.t("join_title");
// TODO wait until new lemmy-instances is written to refactor this
export class Join extends Component<any, any> {
export class Instances extends Component<any, any> {
constructor(props: any, context: any) {
super(props, context);
}

View File

@ -9,7 +9,7 @@ export class LinkLine extends Component<any, any> {
render() {
return (
<>
<Link to="/join">{i18n.t("join")}</Link>
<Link to="/instances">{i18n.t("join")}</Link>
<Link to="/apps">{i18n.t("apps")}</Link>
<Link to="/sponsors">{i18n.t("sponsors")}</Link>
<a href="/docs/en/index.html">{i18n.t("docs")}</a>

View File

@ -14,7 +14,7 @@ export class Main extends Component<any, any> {
joinServer() {
return (
<Link className="button primary" to="/join">
<Link className="button primary" to="/instances">
{i18n.t("join_a_server")}
</Link>
);

View File

@ -1,7 +1,7 @@
import { IRouteProps } from "inferno-router/dist/Route";
import { Main } from "./components/main";
import { Apps } from "./components/apps";
import { Join } from "./components/join";
import { Instances } from "./components/instances";
import { Contact } from "./components/contact";
import { Sponsors } from "./components/sponsors";
@ -17,9 +17,9 @@ export const routes: IRouteProps[] = [
component: Apps,
},
{
path: `/join`,
path: `/instances`,
exact: true,
component: Join,
component: Instances,
},
{
path: `/contact`,