mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-27 22:59:51 -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 Tab from '@material-ui/core/Tab/index';
|
||||||
import { Content } from './styles';
|
import { Content } from './styles';
|
||||||
import Dependencies from '../Dependencies';
|
import Dependencies from '../Dependencies';
|
||||||
|
import UpLinks from '../UpLinks';
|
||||||
|
|
||||||
class DetailContainer extends Component<any, any> {
|
class DetailContainer extends Component<any, any> {
|
||||||
state = {
|
state = {
|
||||||
|
@ -43,9 +44,9 @@ class DetailContainer extends Component<any, any> {
|
||||||
</Tabs>
|
</Tabs>
|
||||||
<Content>
|
<Content>
|
||||||
{tabPosition === 0 && this.renderReadme(readMe)}
|
{tabPosition === 0 && this.renderReadme(readMe)}
|
||||||
{tabPosition === 1 && this.renderDependencies()}
|
{tabPosition === 1 && <Dependencies />}
|
||||||
{tabPosition === 2 && this.renderVersions()}
|
{tabPosition === 2 && <Versions />}
|
||||||
{tabPosition === 3 && this.renderReadme(readMe)}
|
{tabPosition === 3 && <UpLinks />}
|
||||||
</Content>
|
</Content>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
);
|
);
|
||||||
|
@ -57,10 +58,6 @@ class DetailContainer extends Component<any, any> {
|
||||||
return <Readme description={encodedReadme} />;
|
return <Readme description={encodedReadme} />;
|
||||||
};
|
};
|
||||||
|
|
||||||
renderVersions = () => <Versions />;
|
|
||||||
|
|
||||||
renderDependencies = () => <Dependencies />;
|
|
||||||
|
|
||||||
handleChange = (event: any, tabPosition: number) => {
|
handleChange = (event: any, tabPosition: number) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
this.setState({ tabPosition });
|
this.setState({ tabPosition });
|
||||||
|
|
Loading…
Add table
Reference in a new issue