forked from sombochea/verdaccio-ui
feat: update material-ui@4.x (#123)
* chore: update material-ui@4.x * test: update test for ActionBar and TestField * chore: add types * chore: update types * test: update test for Author * chore: fixed bunch of unit test * chore: remove unused import * chore: remove comments * chore: replace shallow my mount * chore: update git hooks * chore: fix styles * chore: update dependencies * chore: remove types material-ui
This commit is contained in:
committed by
GitHub
parent
376b84f8c9
commit
67d7188cf5
@@ -3,12 +3,11 @@
|
||||
import React, { Component, Fragment, ReactElement } from 'react';
|
||||
import Avatar from '@material-ui/core/Avatar';
|
||||
import List from '@material-ui/core/List';
|
||||
import ListItemText from '@material-ui/core/ListItemText';
|
||||
|
||||
import { DetailContextConsumer } from '../../pages/Version';
|
||||
import CopyToClipBoard from '../CopyToClipBoard';
|
||||
|
||||
import { Heading, GithubLink, RepositoryListItem } from './styles';
|
||||
import { Heading, GithubLink, RepositoryListItem, RepositoryListItemText } from './styles';
|
||||
|
||||
import git from './img/git.png';
|
||||
import { isURL } from '../../utils/url';
|
||||
@@ -41,10 +40,10 @@ class Repository extends Component {
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
<List dense={true} subheader={<Heading variant="subheading">{'Repository'}</Heading>}>
|
||||
<RepositoryListItem>
|
||||
<List dense={true} subheader={<Heading variant="subtitle1">{'Repository'}</Heading>}>
|
||||
<RepositoryListItem button={true}>
|
||||
<Avatar src={git} />
|
||||
<ListItemText primary={this.renderContent(url)} />
|
||||
<RepositoryListItemText primary={this.renderContent(url)} />
|
||||
</RepositoryListItem>
|
||||
</List>
|
||||
</Fragment>
|
||||
|
||||
Reference in New Issue
Block a user