-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8972dc4
commit d212d9b
Showing
6 changed files
with
20 additions
and
165 deletions.
There are no files selected for viewing
6 changes: 2 additions & 4 deletions
6
src/components/component-sample.tsx → src/components/_component-sample.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,18 @@ | ||
import React from 'react'; | ||
import {View, Text} from 'react-native-ui-lib'; | ||
|
||
type SectionProps = { | ||
children: React.ReactNode; | ||
title: string; | ||
bg?: boolean; | ||
}; | ||
|
||
export const Section: React.FC<SectionProps> = ({ | ||
children, | ||
title, | ||
bg, | ||
}: SectionProps) => { | ||
const S = { | ||
'bg-bg2Color': bg, | ||
'paddingH-s1': bg, | ||
'paddingV-s2': bg, | ||
}; | ||
import React, {PropsWithChildren} from 'react'; | ||
import {Text, View} from 'react-native-ui-lib'; | ||
|
||
export const Section: React.FC< | ||
PropsWithChildren<{ | ||
title: string; | ||
}> | ||
> = ({children, title}) => { | ||
return ( | ||
<View paddingV-s1> | ||
<View row> | ||
<Text textColor section> | ||
{title} | ||
</Text> | ||
</View> | ||
<View margin-s2 marginV-s3 paddingH-s3> | ||
<Text section textColor> | ||
{title} | ||
</Text> | ||
|
||
<View paddingH-s2 paddingV-s2> | ||
<View br40 {...S}> | ||
{children} | ||
</View> | ||
</View> | ||
<View padding-s2>{children}</View> | ||
</View> | ||
); | ||
}; |