Skip to content

Commit

Permalink
Merge branch 'main' into chore/core-marker-extrude
Browse files Browse the repository at this point in the history
  • Loading branch information
airslice committed Nov 24, 2023
2 parents 04a5677 + b60713b commit 56b17de
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ export type Props = BlockProps;
const TitleBlock: React.FC<Props> = ({ block, isSelected, ...props }) => {
const t = useT();

const property = useMemo(() => block?.property, [block?.property]);
const property = useMemo(() => {
return {
...block?.property,
panel: { padding: block?.property?.title?.padding },
};
}, [block?.property]);

const title = useMemo(
() => property?.title?.title?.value as ValueTypes["string"],
Expand Down

0 comments on commit 56b17de

Please sign in to comment.