mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-20 07:32:01 +03:00
65 lines
1.9 KiB
JavaScript
65 lines
1.9 KiB
JavaScript
import * as React from 'react';
|
|
import * as System from '~/components/system';
|
|
|
|
import SystemPage from '~/components/system/SystemPage';
|
|
|
|
const TAB_GROUP_TWO = [
|
|
{ value: '1', label: 'Capricorn' },
|
|
{ value: '2', label: 'Aquarius' },
|
|
];
|
|
|
|
const TAB_GROUP_FOUR = [
|
|
{ value: '1', label: 'Capricorn' },
|
|
{ value: '2', label: 'Aquarius' },
|
|
{ value: '3', label: 'Pisces' },
|
|
{ value: '4', label: 'Aries' },
|
|
];
|
|
|
|
export default class SystemPageCardTabs extends React.Component {
|
|
state = {
|
|
eighteen: '2',
|
|
nineteen: null,
|
|
};
|
|
|
|
_handleChange = (e) => {
|
|
this.setState({ [e.target.name]: e.target.value });
|
|
};
|
|
|
|
render() {
|
|
return (
|
|
<SystemPage
|
|
title="FCDS"
|
|
description="This is an early preview of the Filecoin Client Design System (FCDS)."
|
|
url="https://fps.onrender.com/system/card-tabs">
|
|
<System.H1>Card Tabs</System.H1>
|
|
<br />
|
|
<br />
|
|
<System.P>
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
|
|
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
|
|
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
|
|
est laborum.
|
|
</System.P>
|
|
<br />
|
|
<br />
|
|
|
|
<System.CardTabGroup
|
|
name="eighteen"
|
|
options={TAB_GROUP_TWO}
|
|
value={this.state.eighteen}
|
|
onChange={this._handleChange}
|
|
/>
|
|
<br />
|
|
<br />
|
|
<System.CardTabGroup
|
|
name="nineteen"
|
|
options={TAB_GROUP_FOUR}
|
|
value={this.state.nineteen}
|
|
onChange={this._handleChange}
|
|
/>
|
|
</SystemPage>
|
|
);
|
|
}
|
|
}
|