Skip to content

Commit

Permalink
chore: fix title's panel setting (#831)
Browse files Browse the repository at this point in the history
Co-authored-by: nina992 <[email protected]>
Co-authored-by: KaWaite <[email protected]>
  • Loading branch information
3 people authored Nov 24, 2023
1 parent df99b18 commit b60713b
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 b60713b

Please sign in to comment.