Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BoxedShowLayout doesn't work #9

Closed
JohnCulturius opened this issue Jan 29, 2021 · 2 comments
Closed

BoxedShowLayout doesn't work #9

JohnCulturius opened this issue Jan 29, 2021 · 2 comments

Comments

@JohnCulturius
Copy link

Hi,

Really nice work but when I try to use the BoxedShowLayout with RaBox nothing happens. Maybe I did something wrong. On the other hand the grid works perfectly.

import React from "react";
import { Show, TabbedShowLayout, Tab, TextField } from "react-admin";
import { GridShowLayout, RaGrid, BoxedShowLayout, RaBox } from "ra-compact-ui";

export default function TestRunShow(props) {
  return (
    <div>
      <Show {...props}>
        <TabbedShowLayout>
          <Tab label="Summary">
            <BoxedShowLayout className="boxedShowLayout">
              <RaBox display="flex">
                <RaBox display="flex" justifyContent="space-between">
                  <TextField source="status" />
                  <TextField source="reference" />
                </RaBox>
              </RaBox>
            </BoxedShowLayout>
            <GridShowLayout className="gridShowLayout">
              <RaGrid container direction="row">
                <RaGrid item xs>
                  <TextField source="status" />
                </RaGrid>
                <RaGrid item xs>
                  <TextField source="reference" />
                </RaGrid>
              </RaGrid>
            </GridShowLayout>
          </Tab>
        </TabbedShowLayout>
      </Show>
    </div>
  );
}

Capture d’écran 2021-01-29 à 13 52 35

Any idea ?

@ValentinnDimitroff
Copy link
Owner

ValentinnDimitroff commented Jan 29, 2021

Yes, it is not your fault. I found the error but didn't manage to post an issue ti indicate it.

No worries - already fixed in 08bd7ec and I'm just publishing it ;)

@mattmelling
Copy link

Just hit this same issue and can confirm that the latest version fixes it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants