Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add margin from top

dominik-zeglen031ca9cb9f56
diff --git a/saleor/static/dashboard-next/staff/components/StaffPermissions/StaffPermissions.tsx b/saleor/static/dashboard-next/staff/components/StaffPermissions/StaffPermissions.tsx
index 11982e510a..e97dc9685c 100644
--- a/saleor/static/dashboard-next/staff/components/StaffPermissions/StaffPermissions.tsx
+++ b/saleor/static/dashboard-next/staff/components/StaffPermissions/StaffPermissions.tsx
@@ -21,8 +21,8 @@ interface StaffPermissionsProps {
}
const decorate = withStyles(theme => ({
- checkbox: {
- marginBottom: theme.spacing.unit
+ checkboxContainer: {
+ marginTop: theme.spacing.unit
},
hr: {
backgroundColor: "#eaeaea",
@@ -62,15 +62,17 @@ const StaffPermissions = decorate<StaffPermissionsProps>(
"Expand or restrict user's permissions to access certain part of saleor system."
)}
</Typography>
- <ControlledCheckbox
- checked={data.hasFullAccess}
- disabled={disabled}
- label={i18n.t("User has full access to the store", {
- context: "checkbox label"
- })}
- name="hasFullAccess"
- onChange={handleFullAccessChange}
- />
+ <div className={classes.checkboxContainer}>
+ <ControlledCheckbox
+ checked={data.hasFullAccess}
+ disabled={disabled}
+ label={i18n.t("User has full access to the store", {
+ context: "checkbox label"
+ })}
+ name="hasFullAccess"
+ onChange={handleFullAccessChange}
+ />
+ </div>
</CardContent>
{!data.hasFullAccess && (
<>