Add conversation requests list
- Add routes to REST API for conversation requests
- Add websocket notification on new conversation requests. This is unreliable.
- Rename 'ColoredCallButton' as 'ColoredRoundButton' and move it to Buttons file for reuse
- Review logic to show conversation tabs
- Add useConversationDisplayNameShort for conversations' names in lists. Will need more work.
- Add hooks to help managing React Query's cache
- Use React Query to remove conversations and update the cache doing so.
- Add ContactService and ConversationService as a way to group reusable functions for the server. This is inspired by jami-android
Known bug: The server often freezes on getContactFromUri (in ContactService) when a new conversation request is received.
Change-Id: I46a60a401f09c3941c864afcdb2625b5fcfe054a
diff --git a/client/src/components/Tabs.tsx b/client/src/components/Tabs.tsx
index 9f7fa20..7e7f3b2 100644
--- a/client/src/components/Tabs.tsx
+++ b/client/src/components/Tabs.tsx
@@ -15,7 +15,15 @@
* License along with this program. If not, see
* <https://www.gnu.org/licenses/>.
*/
-import { TabPanelUnstyled, TabsListUnstyled, TabsUnstyled, TabUnstyled, TabUnstyledProps } from '@mui/base';
+import {
+ TabPanelUnstyled,
+ TabPanelUnstyledProps,
+ TabsListUnstyled,
+ TabsUnstyled,
+ TabsUnstyledProps,
+ TabUnstyled,
+ TabUnstyledProps,
+} from '@mui/base';
import { Theme } from '@mui/material/styles';
import { styled } from '@mui/system';
@@ -58,6 +66,8 @@
},
}));
+export type TabPanelProps = TabPanelUnstyledProps;
+
export const TabPanel = styled(TabPanelUnstyled)(() => ({
width: '100%',
}));
@@ -69,4 +79,6 @@
borderBottom: '1px solid #bfbfbf',
}));
+export type TabsProps = TabsUnstyledProps;
+
export const Tabs = TabsUnstyled;