Skip to content

refactor: Remove duplicated title #3829

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 2, 2022
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const TemplateResourcesTable: FC<React.PropsWithChildren<TemplateResource
const styles = useStyles()

return (
<TableContainer className={styles.tableContainer}>
<TableContainer>
<Table>
<TableHead>
<TableHeaderRow>
Expand Down Expand Up @@ -103,10 +103,6 @@ const useStyles = makeStyles((theme) => ({
margin: 0,
},

tableContainer: {
border: 0,
},

resourceNameCell: {
borderRight: `1px solid ${theme.palette.divider}`,
},
Expand Down
10 changes: 1 addition & 9 deletions site/src/pages/TemplatePage/TemplatePageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,7 @@ export const TemplatePageView: FC<React.PropsWithChildren<TemplatePageViewProps>
{deleteError}
{templateDAUs && <DAUChart templateDAUs={templateDAUs} />}
<TemplateStats template={template} activeVersion={activeTemplateVersion} />
<WorkspaceSection
title={Language.resourcesTitle}
contentsProps={{ className: styles.resourcesTableContents }}
>
<TemplateResourcesTable resources={getStartedResources(templateResources)} />
</WorkspaceSection>
<TemplateResourcesTable resources={getStartedResources(templateResources)} />
<WorkspaceSection
title={Language.readmeTitle}
contentsProps={{ className: styles.readmeContents }}
Expand Down Expand Up @@ -196,9 +191,6 @@ export const useStyles = makeStyles((theme) => {
wordWrap: "break-word",
},
},
resourcesTableContents: {
margin: 0,
},
versionsTableContents: {
margin: 0,
},
Expand Down