Skip to content

Need a bit of help #11

@dagatsoin

Description

@dagatsoin

I just discovered this component but I can't get how to make it work.

I use React Storybook to work on my component. Is there any issue with it ? As it renders the component into a iframe?

Here is my component:

import React from 'react';
import injectSheet from 'react-jss';

import style from '../theme/splitView';

import Section from '../4-layouts/Section';
import View from '../0-atoms/View';
import Sticky from 'react-sticky-state';

const SplitView = ({sheet:{classes}, renderTop, renderMiddle, renderBottom}) =>
  <View className={classes.wzSplitView}>
    <Section className="topView">{renderTop()}</Section>
    <Sticky>
      <div className="sticky top" style={{top: "132px"}}>
        <View className="handleBar">{renderMiddle()}</View>
      </div>
    </Sticky>
    <Section className="bottomView" secondary>{renderBottom()}</Section>
  </View>;

export default injectSheet(style)(SplitView);

And two screen shots:
capture d ecran 2017-01-21 a 17 07 56
capture d ecran 2017-01-21 a 17 08 19

I excepting my middle tab bar to stays stick at the top but nothing happens. Event the class is not changing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions