Add new icon to actions panel

pull/1631/head
Lucas Phang 4 years ago
parent 12d40aa94e
commit f1aad750f2

@ -123,7 +123,7 @@ $session-compose-margin: 20px;
cursor: pointer; cursor: pointer;
padding: 30px; padding: 30px;
&:last-child { &:nth-last-child(2) {
margin: auto auto 0px auto; margin: auto auto 0px auto;
/* Hide theme icon until light theme is ready */ /* Hide theme icon until light theme is ready */
} }

@ -43,6 +43,7 @@ export enum SectionType {
Channel, Channel,
Settings, Settings,
Moon, Moon,
PathIndicator,
} }
const Section = (props: { type: SectionType; avatarPath?: string }) => { const Section = (props: { type: SectionType; avatarPath?: string }) => {
@ -66,7 +67,12 @@ const Section = (props: { type: SectionType; avatarPath?: string }) => {
const newThemeObject = updatedTheme === 'dark' ? darkTheme : lightTheme; const newThemeObject = updatedTheme === 'dark' ? darkTheme : lightTheme;
dispatch(applyTheme(newThemeObject)); dispatch(applyTheme(newThemeObject));
} else { } else if (type === SectionType.PathIndicator) {
// Show Path Indicator Modal
console.log("status clicked")
// window.showPathIndicatorDialog();
}
else {
dispatch(clearSearch()); dispatch(clearSearch());
dispatch(showLeftPaneSection(type)); dispatch(showLeftPaneSection(type));
} }
@ -102,7 +108,10 @@ const Section = (props: { type: SectionType; avatarPath?: string }) => {
case SectionType.Moon: case SectionType.Moon:
iconType = SessionIconType.Moon; iconType = SessionIconType.Moon;
break; break;
// Update Icon Here
case SectionType.PathIndicator:
iconType = SessionIconType.Star;
break;
default: default:
iconType = SessionIconType.Moon; iconType = SessionIconType.Moon;
} }
@ -236,6 +245,8 @@ export const ActionsPanel = () => {
<Section type={SectionType.Settings} /> <Section type={SectionType.Settings} />
<SessionToastContainer /> <SessionToastContainer />
<Section type={SectionType.PathIndicator} />
<Section type={SectionType.Moon} /> <Section type={SectionType.Moon} />
</div> </div>
); );

Loading…
Cancel
Save