diff --git a/src/content/dataSubmissions/DataSubmission.tsx b/src/content/dataSubmissions/DataSubmission.tsx index c9a14e5c..050f794c 100644 --- a/src/content/dataSubmissions/DataSubmission.tsx +++ b/src/content/dataSubmissions/DataSubmission.tsx @@ -6,7 +6,6 @@ import { Button, Card, CardActions, - CardActionsProps, CardContent, Container, IconButton, @@ -117,13 +116,10 @@ const StyledMainContentArea = styled("div")(() => ({ padding: "21px 40px 0", })); -const StyledCardActions = styled(CardActions, { - shouldForwardProp: (prop) => prop !== "isVisible" -})(({ isVisible }) => ({ +const StyledCardActions = styled(CardActions)(() => ({ "&.MuiCardActions-root": { - visibility: isVisible ? "visible" : "hidden", paddingTop: 0, - } + }, })); const StyledTabs = styled(Tabs)(() => ({ @@ -337,7 +333,7 @@ type Props = { tab: string; }; -const DataSubmission: FC = ({ submissionId, tab }) => { +const DataSubmission: FC = ({ submissionId, tab = URLTabs.DATA_ACTIVITY }) => { usePageTitle(`Data Submission ${submissionId || ""}`); const { user } = useAuthContext(); @@ -597,7 +593,7 @@ const DataSubmission: FC = ({ submissionId, tab }) => { - +