Skip to content

Commit

Permalink
Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
david0xd committed Jan 13, 2025
1 parent c45d6c9 commit 88e1224
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { box } from './box';

export const section: UIComponentFactory<SectionElement> = ({
element,
// @ts-expect-error expected
contentBackgroundColor,
...params
}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export type UIComponentParams<T extends JSXElement> = {
placeholder?: string;
};
t: (key: string) => string;
contentBackgroundColor: string | undefined;
};

export type UIComponent = {
Expand Down
2 changes: 1 addition & 1 deletion ui/components/app/snaps/snap-ui-renderer/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export type MapToTemplateParams = {
placeholder?: string;
};
t?: (key: string) => string;
parentBackgroundColor?: string | undefined;
contentBackgroundColor?: string | undefined;
};

/**
Expand Down

0 comments on commit 88e1224

Please sign in to comment.