@thecb/components 10.4.6-beta.0 → 10.4.6-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "10.4.6-beta.0",
3
+ "version": "10.4.6-beta.1",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -12,25 +12,26 @@ const WalletName = ({
12
12
  personName,
13
13
  action = noop,
14
14
  text = "Not you?",
15
- actionText = "Check out as a guest"
15
+ actionText = "Check out as a guest",
16
+ themeValues
16
17
  }) => {
17
18
  const themeContext = useContext(ThemeContext);
18
19
  const { isMobile } = themeContext;
19
- console.log("isMobile", isMobile);
20
+
20
21
  return (
21
22
  <Box
22
- padding="0"
23
+ background={themeValues.backgroundColor}
23
24
  extraStyles={
24
25
  isMobile
25
26
  ? `display: flex; flex-direction: column; flex-wrap: wrap;
26
- div {text - align: right;`
27
+ span {text - align: right;}`
27
28
  : `display: flex; justify-content: space-between; align-items: center;`
28
29
  }
29
30
  >
30
- <Box>
31
+ <Box padding="0">
31
32
  <Text>{personName}</Text>
32
33
  </Box>
33
- <Box>
34
+ <Box padding="0" extraStyles={isMobile && "align-self: flex-end;"}>
34
35
  <Text extraStyles="font-size: 12px">{text}</Text>
35
36
  <ButtonWithAction
36
37
  text={actionText}