Skip to content

Commit

Permalink
chore: city guide fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MounirDhahri committed Jan 23, 2025
1 parent 0eba512 commit d21144f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/app/Scenes/City/CityPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const CityPicker: React.FC<Props> = (props) => {

const Overlay = styled.ScrollView`
flex: 1;
background-color: ${themeGet("colors.white100")};
background-color: ${themeGet("colors.background")};
margin-top: ${themeGet("space.2")};
margin-left: ${themeGet("space.2")};
margin-right: ${themeGet("space.2")};
Expand Down
2 changes: 1 addition & 1 deletion src/app/Scenes/City/Components/FairEventSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import styled from "styled-components/native"
import { FairEventSectionCard } from "./Components/FairEventSectionCard"

const FairSectionBackground = styled(Box)`
background: black;
background: ${themeGet("colors.black100")};
margin-bottom: ${themeGet("space.1")};
`

Expand Down
13 changes: 4 additions & 9 deletions src/app/Scenes/Map/Components/CitySwitcherButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Box, Flex, Text } from "@artsy/palette-mobile"
import themeGet from "@styled-system/theme-get"
import { ThemeAwareClassTheme } from "app/Components/DarkModeClassTheme"
import ChevronIcon from "app/Components/Icons/ChevronIcon"
import Spinner from "app/Components/Spinner"
Expand All @@ -16,7 +17,7 @@ shadow-opacity: 0.3;
`

const Background = styled(Flex)`
background: white;
background: ${themeGet("colors.background")};
height: 40px;
border-radius: 20px;
${shadowProps};
Expand All @@ -33,7 +34,7 @@ export class CitySwitcherButton extends Component<Props> {
const { city, isLoading } = this.props
return isLoading || city ? (
<ThemeAwareClassTheme>
{({ color }) => (
{({}) => (
<TouchableWithoutFeedback
onPress={() => {
if (this.props.onPress) {
Expand Down Expand Up @@ -61,13 +62,7 @@ export class CitySwitcherButton extends Component<Props> {
{city.name}
</Text>
<Box ml={2} mr={4}>
<ChevronIcon
initialDirection="down"
// @ts-ignore
color={color("black100")}
width={20}
height={20}
/>
<ChevronIcon initialDirection="down" color="black100" width={20} height={20} />
</Box>
</>
) : (
Expand Down
11 changes: 5 additions & 6 deletions src/app/Scenes/Map/GlobalMap.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Box, Flex, Text } from "@artsy/palette-mobile"
import { Box, ClassTheme, Flex, Text } from "@artsy/palette-mobile"
import MapboxGL from "@rnmapbox/maps"
import { themeGet } from "@styled-system/theme-get"
import { GlobalMap_viewer$data } from "__generated__/GlobalMap_viewer.graphql"
import { ThemeAwareClassTheme } from "app/Components/DarkModeClassTheme"
import { Pin } from "app/Components/Icons/Pin"
import PinFairSelected from "app/Components/Icons/PinFairSelected"
import PinSavedSelected from "app/Components/Icons/PinSavedSelected"
Expand Down Expand Up @@ -355,7 +354,7 @@ export class GlobalMap extends React.Component<Props, State> {
clusterLat &&
clusterLng &&
pointCount && (
<ThemeAwareClassTheme>
<ClassTheme>
{({ color }) => (
<MapboxGL.PointAnnotation
key={clusterId}
Expand All @@ -370,7 +369,7 @@ export class GlobalMap extends React.Component<Props, State> {
</SelectedCluster>
</MapboxGL.PointAnnotation>
)}
</ThemeAwareClassTheme>
</ClassTheme>
)
)
}
Expand Down Expand Up @@ -542,7 +541,7 @@ export class GlobalMap extends React.Component<Props, State> {
}

return (
<ThemeAwareClassTheme>
<ClassTheme>
{({ color }) => (
<Flex mb={0.5} flexDirection="column" style={{ backgroundColor: color("black5") }}>
<LoadingScreen
Expand Down Expand Up @@ -622,7 +621,7 @@ export class GlobalMap extends React.Component<Props, State> {
</Flex>
</Flex>
)}
</ThemeAwareClassTheme>
</ClassTheme>
)
}

Expand Down

0 comments on commit d21144f

Please sign in to comment.