How to use the @dhis2/ui-core.colors.grey100 function in @dhis2/ui-core

To help you get started, we’ve selected a few @dhis2/ui-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dhis2 / dashboards-app / src / components / Item / VisualizationItem / ItemFooter.js View on Github external
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { colors } from '@dhis2/ui-core';
import { getId } from './plugin';
import InterpretationsComponent from '@dhis2/d2-ui-interpretations';

const style = {
    scrollContainer: {
        overflowY: 'auto',
        height: '340px',
    },
    line: {
        margin: '-1px 0px 0px',
        height: '1px',
        border: 'none',
        backgroundColor: colors.grey100,
    },
};

class ItemFooter extends Component {
    render() {
        const objectId = getId(this.props.item);

        return (
            <div>
                <hr style="{style.line}">
                <div style="{style.scrollContainer}">
                    </div></div>