Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add event log to project (#2136)
- Loading branch information
1 parent
8f02b4d
commit e1b903a
Showing
2 changed files
with
30 additions
and
0 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
23 changes: 23 additions & 0 deletions
23
frontend/src/component/project/Project/ProjectLog/ProjectLog.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { EventLog } from 'component/events/EventLog/EventLog'; | ||
import { useRequiredPathParam } from 'hooks/useRequiredPathParam'; | ||
import { styled } from '@mui/material'; | ||
|
||
const StyledDiv = styled('div')(({ theme }) => ({ | ||
borderRadius: '12.5px', | ||
backgroundColor: theme.palette.background.paper, | ||
padding: '2rem', | ||
})); | ||
|
||
export const ProjectLog = () => { | ||
const projectId = useRequiredPathParam('projectId'); | ||
|
||
return ( | ||
<StyledDiv> | ||
<EventLog | ||
title="Event Log" | ||
project={projectId} | ||
displayInline | ||
></EventLog> | ||
</StyledDiv> | ||
); | ||
}; |