Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Added an exit button for the Settings view #145

Closed
wants to merge 3 commits into from
Closed

Added an exit button for the Settings view #145

wants to merge 3 commits into from

Conversation

RajatJacob
Copy link

@RajatJacob RajatJacob commented Nov 15, 2019

I added an exit-button to the right side of the ChannelHeader for the SettingsView. This solves Issue #122.

Orbit-exit-button

Added a button on the ChannelHeader to go back to the last visited channel.

TODO: Change the exit button's icon
@aphelionz
Copy link
Contributor

This looks great! There are a few indentation / formatting issues. Would you mind fixing those?

@RajatJacob
Copy link
Author

Sorry about that. Will do.

Changed tabbed-indents to 2-spaced-indents.
@RajatJacob
Copy link
Author

Fixed Indentation Issues.

@aphelionz

src/containers/ChannelHeader.js Show resolved Hide resolved
@@ -19,6 +19,7 @@ const MessageUserProfilePanel = lazy(() =>
function ChannelView () {
const { networkStore } = useContext(RootContext)
const { channel } = useParams()
window.lastChannel = (channel == undefined) ? window.lastChannel : channel
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using window I'd recommend using useHistory from react-router-dom OR using a store from context, just to keep the application state in order.

@RajatJacob RajatJacob closed this Mar 12, 2020
@RajatJacob RajatJacob deleted the settings-exit branch March 12, 2020 14:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants