Skip to content

Commit

Permalink
chore(example): remove dead component
Browse files Browse the repository at this point in the history
  • Loading branch information
pierpo committed Oct 31, 2023
1 parent 51cee5a commit 1cbecad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
14 changes: 0 additions & 14 deletions packages/example/src/modules/program/view/ProgramList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,6 @@ export const ProgramsRow = ({ containerStyle }: { containerStyle?: object }) =>
);
};

export const ProgramsColumn = ({ containerStyle }: { containerStyle?: object }) => {
const theme = useTheme();
return (
<ProgramList
orientation="vertical"
containerStyle={{
...containerStyle,
width: theme.sizes.program.portrait.width + ROW_PADDING,
height: 3 * (theme.sizes.program.portrait.height + ROW_PADDING),
}}
/>
);
};

const Container = styled.View(({ theme }) => ({
backgroundColor: theme.colors.background.mainHover,
padding: theme.spacings.$8,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
import { Box } from '../../../design-system/components/Box';
import { Spacer } from '../../../design-system/components/Spacer';
import { Typography } from '../../../design-system/components/Typography';
import { ProgramsColumn, ProgramsRow } from './ProgramList';
import { ProgramsRow } from './ProgramList';

type Props = {
title: string;
orientation?: 'vertical' | 'horizontal';
};

export const ProgramListWithTitle = ({ title, orientation = 'horizontal' }: Props) => {
export const ProgramListWithTitle = ({ title }: Props) => {
return (
<Box direction="vertical">
<Typography variant="body" fontWeight="strong">
{title}
</Typography>
<Spacer direction="vertical" gap="$2" />
{orientation === 'horizontal' ? <ProgramsRow /> : <ProgramsColumn />}
<ProgramsRow />
</Box>
);
};

0 comments on commit 1cbecad

Please sign in to comment.