Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 38 additions & 37 deletions src/pages/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,43 +58,44 @@ const Home: FC = () => {
}, []);

return (
<ScrollArea>
<Box className={container} style={{ display: 'flex', flex: 1, marginTop: '1rem', paddingBottom: '3rem' }}>
<CreateStreamModal />
<Stack
style={{
margin: '1rem',
marginTop: '0',
alignItems: 'center',
justifyContent: 'space-between',
flexDirection: 'row',
}}>
<Text style={{ fontSize: '0.8rem' }} fw={500}>
All Streams
</Text>
<Box>
{userAccessMap.hasCreateStreamAccess && (
<Button
variant="outline"
className={createStreamButton}
onClick={openCreateStreamModal}
leftSection={<IconPlus stroke={2} size={'1rem'} />}>
Create Stream
</Button>
)}
</Box>
</Stack>
{displayEmptyPlaceholder ? (
<EmptyStreamsView />
) : (
<Group style={{ marginRight: '1rem', marginLeft: '1rem', gap: '1rem' }}>
{Object.entries(metaData || {}).map(([stream, data]) => {
return <StreamInfo key={stream} stream={stream} data={data} navigateToStream={navigateToStream} />;
})}
</Group>
)}
</Box>
</ScrollArea>
<>
<Stack
style={{
margin: '1rem',
alignItems: 'center',
justifyContent: 'space-between',
flexDirection: 'row',
}}>
<Text style={{ fontSize: '0.8rem' }} fw={500}>
All Streams
</Text>
<Box>
{userAccessMap.hasCreateStreamAccess && (
<Button
variant="outline"
className={createStreamButton}
onClick={openCreateStreamModal}
leftSection={<IconPlus stroke={2} size={'1rem'} />}>
Create Stream
</Button>
)}
</Box>
</Stack>
<ScrollArea>
<Box className={container} style={{ display: 'flex', flex: 1, paddingBottom: '3rem' }}>
<CreateStreamModal />
{displayEmptyPlaceholder ? (
<EmptyStreamsView />
) : (
<Group style={{ marginRight: '1rem', marginLeft: '1rem', gap: '1rem' }}>
{Object.entries(metaData || {}).map(([stream, data]) => {
return <StreamInfo key={stream} stream={stream} data={data} navigateToStream={navigateToStream} />;
})}
</Group>
)}
</Box>
</ScrollArea>
</>
);
};

Expand Down