Skip to content

Commit

Permalink
fix: requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
PahaN47 committed Nov 28, 2024
1 parent f7b2fe2 commit 922db29
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ const Page: React.PropsWithChildren<PageProps> = ({content}) => (

```typescript
interface PageConstructorProps {
content: PageContent; //Blocks data in JSON format.
content: PageContent; // Blocks data in JSON format.
shouldRenderBlock?: ShouldRenderBlock; // A function that is invoked when rendering each block and lets you set conditions for its display.
custom?: Custom; //Custom blocks (see `Customization`).
renderMenu?: () => React.ReactNode; //A function that renders the page menu with navigation (we plan to add rendering for the default menu version).
custom?: Custom; // Custom blocks (see `Customization`).
renderMenu?: () => React.ReactNode; // A function that renders the page menu with navigation (we plan to add rendering for the default menu version).
navigation?: NavigationData; // Navigation data for using navigation component in JSON format
isBranded?: boolean; // If true, adds a footer that links to https://gravity-ui.com/. Try BrandFooter component for more customization.
}

interface PageConstructorProviderProps {
Expand Down
6 changes: 3 additions & 3 deletions src/containers/PageConstructor/PageConstructor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface PageConstructorProps {
custom?: CustomConfig;
renderMenu?: () => React.ReactNode;
navigation?: NavigationData;
branded?: boolean;
isBranded?: boolean;
microdata?: {
contentUpdatedDate?: string;
};
Expand All @@ -64,7 +64,7 @@ export const Constructor = (props: PageConstructorProps) => {
shouldRenderBlock,
navigation,
custom,
branded,
isBranded,
microdata,
} = props;

Expand Down Expand Up @@ -124,7 +124,7 @@ export const Constructor = (props: PageConstructorProps) => {
)}
</Grid>
</Layout>
{branded && <BrandFooter />}
{isBranded && <BrandFooter />}
</div>
</RootCn>
</InnerContext.Provider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ WithFullWidthBackgroundMedia.args = {
} as PageConstructorProps;
Branded.args = {
...data.default,
branded: true,
isBranded: true,
};

0 comments on commit 922db29

Please sign in to comment.