-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from indexnetwork/bugfix
Bugfix
- Loading branch information
Showing
11 changed files
with
147 additions
and
143 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
49 changes: 15 additions & 34 deletions
49
web-app/src/components/sections/IndexConversation/TabContainer/AccessControlTab.tsx
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,41 +1,22 @@ | ||
import Col from "@/components/layout/base/Grid/Col"; | ||
import FlexRow from "@/components/layout/base/Grid/FlexRow"; | ||
import { useApi } from "@/context/APIContext"; | ||
import { useApp } from "@/context/AppContext"; | ||
import Soon from "@/components/site/indexes/Soon"; | ||
import { useRole } from "@/hooks/useRole"; | ||
import { useRouteParams } from "@/hooks/useRouteParams"; | ||
import React from "react"; | ||
import { useIndexConversation } from "../IndexConversationContext"; | ||
|
||
export default function AccessControlTabSection() { | ||
const { id: indexID } = useRouteParams(); | ||
// const [links, setLinks] = useState<IndexLink[]>([]); | ||
const { isOwner } = useRole(); | ||
const { api } = useApi(); | ||
const { viewedIndex } = useApp(); | ||
const { itemsState } = useIndexConversation(); | ||
|
||
// const loadLinks = useCallback(async () => { | ||
// // Logic to load chat links and update state | ||
// // Example: | ||
// try { | ||
// const response = await api.searchLink({ index_id: indexID }); | ||
// setLinks(response.records); | ||
// } catch (error) { | ||
// console.error("Error fetching chat links", error); | ||
// } | ||
// }, [api, indexID]); | ||
|
||
// useEffect(() => { | ||
// loadLinks(); | ||
// }, [loadLinks]); | ||
|
||
return ( | ||
<FlexRow justify="center" align="center" fullHeight> | ||
<Col> | ||
<div | ||
style={{ | ||
display: "flex", | ||
flexDirection: "column", | ||
alignItems: "center", | ||
justifyContent: "center", | ||
}} | ||
> | ||
<div | ||
style={{ | ||
paddingTop: "4rem", | ||
}} | ||
> | ||
<Soon section={"access_control"}></Soon> | ||
</Col> | ||
</FlexRow> | ||
</div> | ||
</div> | ||
); | ||
} |
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
Oops, something went wrong.