-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into feature/link-previews
- Loading branch information
Showing
38 changed files
with
424 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,19 @@ | ||
import React, { FC } from "react"; | ||
import React, { FC, useEffect } from "react"; | ||
import { useSelector } from "react-redux"; | ||
import { history } from "@/shared/appConfig"; | ||
import { getInboxPagePath } from "@/shared/utils"; | ||
import { selectUser } from "../Auth/store/selectors"; | ||
|
||
const EmptyPage: FC = () => null; | ||
const EmptyPage: FC = () => { | ||
const user = useSelector(selectUser()); | ||
|
||
useEffect(() => { | ||
if (user) { | ||
history.push(getInboxPagePath()); | ||
} | ||
}, [user]); | ||
|
||
return null; | ||
}; | ||
|
||
export default EmptyPage; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import botAvatarSrc from "@/shared/assets/images/bot-avatar.svg"; | ||
import { Timestamp, User } from "@/shared/models"; | ||
|
||
export const AI_USER: User = { | ||
uid: "ai", | ||
firstName: "ai", | ||
lastName: "", | ||
country: "", | ||
photoURL: botAvatarSrc, | ||
createdAt: Timestamp.now(), | ||
updatedAt: Timestamp.now(), | ||
}; | ||
|
||
export const AI_PRO_USER: User = { | ||
...AI_USER, | ||
uid: "aipro", | ||
firstName: "aipro", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export enum DiscussionMessageOwnerType { | ||
User = "user", | ||
System = "system", | ||
Bot = "bot", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
export enum FeatureFlags { | ||
AdvancedSettings = "AdvancedSettings", | ||
AiBot = "AiBot", | ||
AiBotPro = "AiBotPro", | ||
} | ||
|
||
export enum FeatureFlagVisibility { | ||
ALL = 'ALL', | ||
TEAM = 'TEAM', | ||
USERS = 'USERS' | ||
} | ||
ALL = "ALL", | ||
TEAM = "TEAM", | ||
USERS = "USERS", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.