|
@@ -160,7 +160,13 @@ export function SideBar(props: { className?: string }) {
|
|
icon={<MaskIcon />}
|
|
icon={<MaskIcon />}
|
|
text={shouldNarrow ? undefined : Locale.Mask.Name}
|
|
text={shouldNarrow ? undefined : Locale.Mask.Name}
|
|
className={styles["sidebar-bar-button"]}
|
|
className={styles["sidebar-bar-button"]}
|
|
- onClick={() => navigate(Path.NewChat, { state: { fromHome: true } })}
|
|
|
|
|
|
+ onClick={() => {
|
|
|
|
+ if (config.dontShowMaskSplashScreen !== true) {
|
|
|
|
+ navigate(Path.NewChat, { state: { fromHome: true } });
|
|
|
|
+ } else {
|
|
|
|
+ navigate(Path.Masks, { state: { fromHome: true } });
|
|
|
|
+ }
|
|
|
|
+ }}
|
|
shadow
|
|
shadow
|
|
/>
|
|
/>
|
|
<IconButton
|
|
<IconButton
|