mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-13 22:48:31 -05:00
refactor: changed card styleS
This commit is contained in:
parent
b174c22eb9
commit
27b40fbdcb
1 changed files with 4 additions and 7 deletions
|
@ -13,6 +13,7 @@ import Tabs from '@material-ui/core/Tabs/index';
|
|||
import Tab from '@material-ui/core/Tab/index';
|
||||
import { Content } from './styles';
|
||||
import Dependencies from '../Dependencies';
|
||||
import UpLinks from '../UpLinks';
|
||||
|
||||
class DetailContainer extends Component<any, any> {
|
||||
state = {
|
||||
|
@ -43,9 +44,9 @@ class DetailContainer extends Component<any, any> {
|
|||
</Tabs>
|
||||
<Content>
|
||||
{tabPosition === 0 && this.renderReadme(readMe)}
|
||||
{tabPosition === 1 && this.renderDependencies()}
|
||||
{tabPosition === 2 && this.renderVersions()}
|
||||
{tabPosition === 3 && this.renderReadme(readMe)}
|
||||
{tabPosition === 1 && <Dependencies />}
|
||||
{tabPosition === 2 && <Versions />}
|
||||
{tabPosition === 3 && <UpLinks />}
|
||||
</Content>
|
||||
</React.Fragment>
|
||||
);
|
||||
|
@ -57,10 +58,6 @@ class DetailContainer extends Component<any, any> {
|
|||
return <Readme description={encodedReadme} />;
|
||||
};
|
||||
|
||||
renderVersions = () => <Versions />;
|
||||
|
||||
renderDependencies = () => <Dependencies />;
|
||||
|
||||
handleChange = (event: any, tabPosition: number) => {
|
||||
event.preventDefault();
|
||||
this.setState({ tabPosition });
|
||||
|
|
Loading…
Reference in a new issue