From 4257463b46be982bf4253ea3937b3a8059f82846 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 9 Mar 2021 13:25:31 +0100 Subject: [PATCH] Rename Connect/Join to ConnectForm/JoinForm --- components/app.js | 8 ++++---- components/{connect.js => connect-form.js} | 2 +- components/{join.js => join-form.js} | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename components/{connect.js => connect-form.js} (98%) rename components/{join.js => join-form.js} (94%) diff --git a/components/app.js b/components/app.js index c2708f8..79b41cc 100644 --- a/components/app.js +++ b/components/app.js @@ -4,8 +4,8 @@ import Buffer from "./buffer.js"; import BufferList from "./buffer-list.js"; import BufferHeader from "./buffer-header.js"; import MemberList from "./member-list.js"; -import Connect from "./connect.js"; -import Join from "./join.js"; +import ConnectForm from "./connect-form.js"; +import JoinForm from "./join-form.js"; import Help from "./help.js"; import Composer from "./composer.js"; import ScrollManager from "./scroll-manager.js"; @@ -930,7 +930,7 @@ export default class App extends Component { if (!activeNetwork || (activeNetwork.status !== NetworkStatus.REGISTERED && !activeBuffer)) { return html`
- <${Connect} error=${this.state.error} params=${this.state.connectParams} disabled=${activeNetwork} onSubmit=${this.handleConnectSubmit}/> + <${ConnectForm} error=${this.state.error} params=${this.state.connectParams} disabled=${activeNetwork} onSubmit=${this.handleConnectSubmit}/>
`; } @@ -968,7 +968,7 @@ export default class App extends Component { case "join": dialog = html` <${Dialog} title="Join channel" onDismiss=${this.handleDialogDismiss}> - <${Join} onSubmit=${this.handleJoinSubmit}/> + <${JoinForm} onSubmit=${this.handleJoinSubmit}/> `; break; diff --git a/components/connect.js b/components/connect-form.js similarity index 98% rename from components/connect.js rename to components/connect-form.js index 3dc5635..831129e 100644 --- a/components/connect.js +++ b/components/connect-form.js @@ -1,6 +1,6 @@ import { html, Component } from "../lib/index.js"; -export default class Connect extends Component { +export default class ConnectForm extends Component { state = { serverURL: "", serverPass: "", diff --git a/components/join.js b/components/join-form.js similarity index 94% rename from components/join.js rename to components/join-form.js index 81e4aa9..d826943 100644 --- a/components/join.js +++ b/components/join-form.js @@ -1,6 +1,6 @@ import { html, Component } from "../lib/index.js"; -export default class Join extends Component { +export default class JoinForm extends Component { state = { channel: "#", };