mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
add link to Oxen website in the settings (right icon missing)
This commit is contained in:
parent
77a6be3432
commit
0d5e52678f
|
@ -23,6 +23,7 @@ export enum SessionIconType {
|
|||
Lock = 'lock',
|
||||
Microphone = 'microphone',
|
||||
Moon = 'moon',
|
||||
Oxen = 'oxen',
|
||||
Pause = 'pause',
|
||||
Pencil = 'pencil',
|
||||
Pin = 'pin',
|
||||
|
@ -213,6 +214,12 @@ export const icons = {
|
|||
viewBox: '0.5 0.5 22 22',
|
||||
ratio: 1,
|
||||
},
|
||||
[SessionIconType.Oxen]: {
|
||||
path:
|
||||
'M18,4L20,8H17L15,4H13L15,8H12L10,4H8L10,8H7L5,4H4A2,2 0 0,0 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V4H18Z',
|
||||
viewBox: '0 0 24 24',
|
||||
ratio: 1,
|
||||
},
|
||||
[SessionIconType.Pause]: {
|
||||
path:
|
||||
'M33,4.5v24c0,2.484-2.016,4.5-4.5,4.5h-24C2.016,33,0,30.984,0,28.5v-24C0,2.016,2.016,0,4.5,0h24 C30.984,0,33,2.016,33,4.5z',
|
||||
|
|
|
@ -22,6 +22,7 @@ import { unblockConvoById } from '../../../interactions/conversationInteractions
|
|||
import { toggleAudioAutoplay } from '../../../state/ducks/userConfig';
|
||||
import { sessionPassword } from '../../../state/ducks/modalDialog';
|
||||
import { PasswordAction } from '../SessionPasswordModal';
|
||||
import { SessionIconButton, SessionIconSize, SessionIconType } from '../icon';
|
||||
|
||||
export enum SessionSettingCategory {
|
||||
Appearance = 'appearance',
|
||||
|
@ -246,9 +247,17 @@ class SettingsViewInner extends React.Component<SettingsViewProps, State> {
|
|||
}
|
||||
|
||||
public renderSessionInfo(): JSX.Element {
|
||||
const openOxenWebsite = () => {
|
||||
void shell.openExternal('https://oxen.io/');
|
||||
};
|
||||
return (
|
||||
<div className="session-settings__version-info">
|
||||
<span className="text-selectable">v{window.versionInfo.version}</span>
|
||||
<span><SessionIconButton
|
||||
iconSize={SessionIconSize.Medium}
|
||||
iconType={SessionIconType.Oxen}
|
||||
onClick={openOxenWebsite}
|
||||
/></span>
|
||||
<span className="text-selectable">{window.versionInfo.commitHash}</span>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue