Skip to content

Commit

Permalink
removed home
Browse files Browse the repository at this point in the history
  • Loading branch information
Spiral-Memory committed Sep 5, 2024
1 parent f2e00df commit 158af13
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 72 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/stories/EmbeddedChat.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const Simple = {
host: process.env.STORYBOOK_RC_HOST || 'http://localhost:3000',
roomId: process.env.RC_ROOM_ID || 'GENERAL',
channelName: 'general',
anonymousMode: true,
anonymousMode: false,
headerColor: 'white',
toastBarPosition: 'bottom right',
showRoles: true,
Expand Down
7 changes: 1 addition & 6 deletions packages/react/src/views/EmbeddedChat.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
} from '@embeddedchat/ui-elements';
import { ChatLayout } from './ChatLayout';
import { ChatHeader } from './ChatHeader';
import { Home } from './Home';
import { RCInstanceProvider } from '../context/RCInstance';
import { useUserStore, useLoginStore } from '../store';
import DefaultTheme from '../theme/DefaultTheme';
Expand Down Expand Up @@ -251,11 +250,7 @@ const EmbeddedChat = (props) => {
/>
)}

{isUserAuthenticated || anonymousMode ? (
<ChatLayout />
) : (
<Home height={!fullScreen ? height : '88vh'} />
)}
<ChatLayout />

<div id="overlay-items" />
</ToastBarProvider>
Expand Down
46 changes: 0 additions & 46 deletions packages/react/src/views/Home/Home.js

This file was deleted.

18 changes: 0 additions & 18 deletions packages/react/src/views/Home/Home.styles.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/react/src/views/Home/index.js

This file was deleted.

0 comments on commit 158af13

Please sign in to comment.