Skip to content

Commit

Permalink
chore: fix typos and namings
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienIzz committed Jan 30, 2024
1 parent 2a19fc8 commit fb33537
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/example/src/pages/NonVirtualizedGridPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ import chunk from 'lodash/chunk';
import { ProgramInfo } from '../modules/program/domain/programInfo';
import { theme } from '../design-system/theme/theme';

const renderProgramList = (programsLists: ProgramInfo[]) => (
<ProgramList programs={programsLists} />
);
const ROW_SIZE = 7;

const renderProgramsList = (programsList: ProgramInfo[]) => <ProgramRow programs={programsList} />;

export const NonVirtualizedGridPage = () => {
const programsList = chunk(getPrograms(), 7);
const programsLists = chunk(getPrograms(), ROW_SIZE);
return (
<Page>
<Container>
<SpatialNavigationNode alignInGrid>
<DefaultFocus>{programsList.map(renderProgramList)}</DefaultFocus>
<DefaultFocus>{programsLists.map(renderProgramsList)}</DefaultFocus>
</SpatialNavigationNode>
</Container>
</Page>
);
};

const ProgramList = ({ programs }: { programs: ProgramInfo[] }) => {
const ProgramRow = ({ programs }: { programs: ProgramInfo[] }) => {
const navigation = useNavigation<NativeStackNavigationProp<RootStackParamList>>();
return (
<SpatialNavigationNode orientation="horizontal">
Expand Down

0 comments on commit fb33537

Please sign in to comment.