Skip to content

Commit

Permalink
chore(web): fix type errors in align system
Browse files Browse the repository at this point in the history
  • Loading branch information
KaWaite committed Nov 22, 2023
1 parent 0214045 commit 91a8215
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export type WidgetArea = {
align?: Alignment;
padding?: WidgetAreaPadding;
widgets?: Widget[];
gap?: number | null;
gap?: number;
centered?: boolean;
background?: string;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,10 @@ export const convertWidgets = (
left: padding?.left ?? 6,
right: padding?.right ?? 6,
},
gap: area?.gap ?? 6,
widgets: areaWidgets,
background: area?.background as string | undefined,
centered: area?.centered,
gap: area?.gap,
};
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ export default (alias?: string) => {
left: padding?.left ?? 6,
right: padding?.right ?? 6,
},
gap: area?.gap ?? 6,
widgets: areaWidgets || [],
background: area?.background as string | undefined,
centered: area?.centered,
gap: area?.gap,
};
};

Expand Down
2 changes: 1 addition & 1 deletion web/src/classic/components/organisms/Published/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ export default (alias?: string) => {
left: padding?.left ?? 6,
right: padding?.right ?? 6,
},
gap: area?.gap ?? 6,
widgets: areaWidgets,
background: area?.background as string | undefined,
centered: area?.centered,
gap: area?.gap,
};
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type WidgetArea = {
align?: Alignment;
padding?: WidgetAreaPadding;
widgets?: InternalWidget[];
gap?: number | null;
gap?: number;
centered?: boolean;
background?: string;
};
Expand Down

0 comments on commit 91a8215

Please sign in to comment.