Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:indexnetwork/index into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed May 21, 2024
2 parents d0ab8d6 + a861ceb commit be6f827
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
import NoIndexesChat from "@/components/ai/no-indexes";
import AskIndexes from "@/components/site/indexes/AskIndexes";
import { useApp } from "@/context/AppContext";
import LoadingSection from "../../Loading";
import { useIndexConversation } from "../IndexConversationContext";

export default function ChatTabSection() {
const { viewedIndex, viewedProfile, chatID } = useApp();
const { itemsState, loading: indexLoading } = useIndexConversation();
const { itemsState } = useIndexConversation();

if (indexLoading) {
return (
<div
style={{
height: "80vh",
display: "flex",
flexDirection: "column",
alignItems: "center",
justifyContent: "center",
}}
>
<LoadingSection />
</div>
);
}
// if (indexLoading) {
// return (
// <div
// style={{
// height: "80vh",
// display: "flex",
// flexDirection: "column",
// alignItems: "center",
// justifyContent: "center",
// }}
// >
// <LoadingSection />
// </div>
// );
// }

if (itemsState.items.length > 0 && viewedIndex) {
return chatID ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const IndexIndexItem: React.FC<IndexIndexItemProps> = ({
</FlexRow>
</Col>
<Col xs={12} className="mt-2">
<Text size="md" theme="gray5">
<Text size="sm" theme="disabled">
{node?.updatedAt
? `Updated ${moment(new Date(node.updatedAt)).fromNow()}`
: ""}
Expand Down
4 changes: 3 additions & 1 deletion web-app/src/components/site/index-details/LinkItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ const LinkItem: React.FC<LinkItemProps> = ({
/>
<Text size="sm" theme="disabled">
{node?.url?.substring(0, 80)}{" "}
{node?.updatedAt ? moment(node?.updatedAt).format("MMM D") : ""}
{node?.updatedAt
? `Updated ${moment(new Date(node.updatedAt)).fromNow()}`
: ""}
</Text>
</a>
</Col>
Expand Down

0 comments on commit be6f827

Please sign in to comment.