mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
refactor: Remove duplicated title (#3829)
This commit is contained in:
@@ -29,7 +29,7 @@ export const TemplateResourcesTable: FC<React.PropsWithChildren<TemplateResource
|
||||
const styles = useStyles()
|
||||
|
||||
return (
|
||||
<TableContainer className={styles.tableContainer}>
|
||||
<TableContainer>
|
||||
<Table>
|
||||
<TableHead>
|
||||
<TableHeaderRow>
|
||||
@@ -103,10 +103,6 @@ const useStyles = makeStyles((theme) => ({
|
||||
margin: 0,
|
||||
},
|
||||
|
||||
tableContainer: {
|
||||
border: 0,
|
||||
},
|
||||
|
||||
resourceNameCell: {
|
||||
borderRight: `1px solid ${theme.palette.divider}`,
|
||||
},
|
||||
|
||||
@@ -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 }}
|
||||
@@ -196,9 +191,6 @@ export const useStyles = makeStyles((theme) => {
|
||||
wordWrap: "break-word",
|
||||
},
|
||||
},
|
||||
resourcesTableContents: {
|
||||
margin: 0,
|
||||
},
|
||||
versionsTableContents: {
|
||||
margin: 0,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user