Skip to content

Commit

Permalink
Merge pull request #8 from amina-deriv/upgrade_model_new_signup
Browse files Browse the repository at this point in the history
Amina/Upgrade model new signup
  • Loading branch information
Ali(Ako) Hosseini committed Nov 2, 2021
2 parents 1cac6c5 + 79bc762 commit b8fb19c
Show file tree
Hide file tree
Showing 15 changed files with 470 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions packages/components/src/components/icon/common/ic-assets-forex.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions packages/components/src/components/icon/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ import './common/ic-arrow-right-curly.svg';
import './common/ic-arrow-right.svg';
import './common/ic-arrow-up-bold.svg';
import './common/ic-arrow-up.svg';
import './common/ic-assets-commodities.svg';
import './common/ic-assets-crypto.svg';
import './common/ic-assets-forex.svg';
import './common/ic-assets-indices.svg';
import './common/ic-assets-stocks.svg';
import './common/ic-assets-synthetics.svg';
import './common/ic-attachment.svg';
import './common/ic-bank-dashboard.svg';
import './common/ic-bank.svg';
Expand Down
16 changes: 16 additions & 0 deletions packages/components/src/components/table/table-footer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';

const Footer = ({ children, className }) => (
<div role='rowgroup' className={classNames('dc-table__footer', className)}>
{children}
</div>
);

Footer.propTypes = {
children: PropTypes.node.isRequired,
className: PropTypes.string,
};

export default Footer;
3 changes: 2 additions & 1 deletion packages/components/src/components/table/table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Header from './table-header.jsx';
import Body from './table-body.jsx';
import Row from './table-row.jsx';
import Cell from './table-cell.jsx';
import Footer from './table-footer.jsx';
import ThemedScrollbars from '../themed-scrollbars/themed-scrollbars.jsx';

// TODO: update the <Table /> component to fit with the DataTable in Trader
Expand Down Expand Up @@ -35,6 +36,6 @@ Table.Header = Header;
Table.Body = Body;
Table.Row = Row;
Table.Cell = Cell;
// TODO add footer
Table.Footer = Footer;

export default Table;
3 changes: 3 additions & 0 deletions packages/components/src/components/table/table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
justify-content: flex-end;
}
}
&__footer {
height: 80px;
}
&--scroll {
.dc-table__header {
position: sticky;
Expand Down
6 changes: 6 additions & 0 deletions packages/components/stories/icon/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@ export const icons = {
'IcArrowRight',
'IcArrowUpBold',
'IcArrowUp',
'IcAssetsCommodities',
'IcAssetsCrypto',
'IcAssetsForex',
'IcAssetsIndices',
'IcAssetsStocks',
'IcAssetsSynthetics',
'IcAttachment',
'IcBankDashboard',
'IcBank',
Expand Down
Loading

0 comments on commit b8fb19c

Please sign in to comment.