Skip to content

Commit 927e7c0

Browse files
committed
chore: export design system components
1 parent 35f7d2d commit 927e7c0

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

packages/design-system/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './src/Button';

packages/design-system/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "design-system",
33
"version": "0.0.1",
44
"private": true,
5+
"main": "index.ts",
56
"scripts": {
67
"storybook": "storybook dev -p 6006",
78
"build-storybook": "storybook build"

packages/design-system/src/Button.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ export type ButtonProps = {
77
};
88

99
export const Button = ({ text, onPress }: ButtonProps) => (
10-
<View className="justify-start flex-1">
11-
<TouchableOpacity
12-
className="px-4 py-2 flex justify-start bg-purple-700 rounded-md"
13-
onPress={onPress}
14-
activeOpacity={0.8}
15-
>
16-
<Text className="text-white text-base font-bold">{text}</Text>
17-
</TouchableOpacity>
18-
</View>
10+
<TouchableOpacity
11+
className="px-4 py-2 flex justify-start bg-purple-700 rounded-md"
12+
onPress={onPress}
13+
activeOpacity={0.8}
14+
>
15+
<Text className="text-white text-base font-bold">{text}</Text>
16+
</TouchableOpacity>
1917
);
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const { tailwindConfig } = require('tailwind-config');
2-
32
module.exports = {
43
...tailwindConfig,
54
};

0 commit comments

Comments
 (0)