upd: projeect
Deskripsi: - ui list project - ui grid project - ui create project No Issues
This commit is contained in:
@@ -1,23 +1,26 @@
|
||||
import { ColorsStatus } from "@/constants/ColorsStatus";
|
||||
import Styles from "@/constants/Styles";
|
||||
import { Text, View } from "react-native";
|
||||
import ProgressBar from "./progressBar";
|
||||
import { Pressable, Text, View } from "react-native";
|
||||
|
||||
type Props = {
|
||||
content: 'carousel' | 'page';
|
||||
children: React.ReactNode;
|
||||
title: string
|
||||
headerColor: 'primary' | 'warning'
|
||||
onPress?: () => void
|
||||
};
|
||||
export default function PaperGridContent({ content, children, title, headerColor }: Props) {
|
||||
export default function PaperGridContent({ content, children, title, headerColor, onPress }: Props) {
|
||||
return (
|
||||
<View style={[content == 'carousel' ? Styles.wrapGridCaraousel : Styles.wrapGridContent, headerColor == 'warning' ? ColorsStatus.warning : ColorsStatus.primary]}>
|
||||
<View style={[Styles.headerPaperGrid]}>
|
||||
<Text style={[Styles.textSubtitle, headerColor == 'warning' ? Styles.cDefault : Styles.cWhite]}>{title}</Text>
|
||||
<Pressable onPress={onPress}>
|
||||
<View style={[content == 'carousel' ? Styles.wrapGridCaraousel : Styles.wrapGridContent, headerColor == 'warning' ? ColorsStatus.warning : ColorsStatus.primary]}>
|
||||
<View style={[Styles.headerPaperGrid]}>
|
||||
<Text style={[Styles.textSubtitle, headerColor == 'warning' ? Styles.cDefault : Styles.cWhite]}>{title}</Text>
|
||||
</View>
|
||||
<View style={[Styles.contentPaperGrid]}>
|
||||
{children}
|
||||
</View>
|
||||
</View>
|
||||
<View style={[Styles.contentPaperGrid]}>
|
||||
{children}
|
||||
</View>
|
||||
</View>
|
||||
</Pressable>
|
||||
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user