mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 14:53:24 +00:00
fix theme selector not working, add input styling
This commit is contained in:
38
apps/expo/src/components/ui/Select.tsx
Normal file
38
apps/expo/src/components/ui/Select.tsx
Normal file
@@ -0,0 +1,38 @@
|
||||
import { Select, styled, withStaticProperties } from "tamagui";
|
||||
|
||||
const MWSelectFrame = styled(Select, {
|
||||
variants: {
|
||||
type: {
|
||||
default: {
|
||||
backgroundColor: "$inputBackground",
|
||||
color: "$inputText",
|
||||
borderColor: "$inputBorder",
|
||||
},
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
type: "default",
|
||||
},
|
||||
});
|
||||
|
||||
const MWSelectTrigger = styled(Select.Trigger, {
|
||||
variants: {
|
||||
type: {
|
||||
default: {
|
||||
backgroundColor: "$inputBackground",
|
||||
color: "$inputText",
|
||||
placeholderTextColor: "$inputPlaceholderText",
|
||||
borderColor: "$inputBorder",
|
||||
},
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
type: "default",
|
||||
},
|
||||
});
|
||||
|
||||
const MWSelect = withStaticProperties(MWSelectFrame, {
|
||||
Trigger: MWSelectTrigger,
|
||||
});
|
||||
|
||||
export { MWSelect };
|
Reference in New Issue
Block a user