Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit ed19305

Browse files
fix: hack to proovide featuredExamples in main-page
1 parent 2c00872 commit ed19305

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/views/main-page/main-page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function createExamplesContent(page: Page) {
172172
const examples = <GridLayout class="page-content" margin={isAndroid ? "74 0 0 0" : "0"}>
173173
<ScrollView id="content" opacity={0}>
174174
<GridLayout>
175-
<Repeater items={["{{ featuredExamples }}"]} margin={isAndroid ? 10 : 6} itemsLayout={itemsLayout} itemTemplate={itemTemplate} />
175+
<Repeater items={page.bindingContext.featuredExamples} margin={isAndroid ? 10 : 6} itemsLayout={itemsLayout} itemTemplate={itemTemplate} />
176176
</GridLayout>
177177
</ScrollView>
178178
</GridLayout>;

core.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ declare module "tns-core-modules/ui/page" {
3030

3131
declare module "tns-core-modules/ui/button" {
3232
interface Button {
33-
props: Optional<this>, tap(args?:any);
33+
props: Optional<this>, tap(args?: any);
3434
}
3535
}
3636

@@ -42,7 +42,7 @@ declare module "tns-core-modules/ui/layouts/wrap-layout" {
4242

4343
declare module "tns-core-modules/ui/layouts/grid-layout" {
4444
interface GridLayout {
45-
props: Optional<this>, rows, onTap(args?:any, event?: any), touch(args?:any);
45+
props: Optional<this>, rows, onTap(args?: any, event?: any), touch(args?: any);
4646
}
4747
}
4848

0 commit comments

Comments
 (0)