Skip to content

Commit deb640c

Browse files
authored
Merge pull request #381 from GeekyAnts/fix/use-color-mode-content-changes
Updated Content Changes in use-color-mode
2 parents b339954 + 3a63cae commit deb640c

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

docs/3.0.x/use-color-mode.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,26 @@ title: useColorMode
88
## Import
99

1010
```jsx
11-
import { useColorMode } from 'native-base';
11+
import { useColorMode } from "native-base";
1212
```
1313

1414
## Example
1515

1616
```jsx isLive=true
17-
import React from 'react';
17+
import React from "react";
1818
import {
1919
NativeBaseProvider,
2020
VStack,
2121
useColorMode,
2222
Text,
2323
Button,
2424
Center,
25-
} from 'native-base';
25+
} from "native-base";
2626

2727
function UseColorMode() {
2828
const { colorMode, toggleColorMode } = useColorMode();
2929
return (
30-
<Center flex={1} bg={colorMode === 'dark' ? 'black' : 'white'}>
30+
<Center flex={1} bg={colorMode === "dark" ? "black" : "white"}>
3131
<Text fontSize="lg" display="flex">
3232
The active color mode is <Text bold>{colorMode}</Text>
3333
</Text>
@@ -51,6 +51,6 @@ export function Example() {
5151

5252
| Name | Type | Description | Default |
5353
| --------------- | --------------- | ------------------------------------------ | ------- |
54-
| colorMode | `light`, `dark` | The active color mode | `light` |
54+
| colorMode | `light`, `dark` | The active color mode. | `light` |
5555
| setColorMode | function | Use to set color mode. | - |
5656
| toggleColorMode | function | Use to toggle between light and dark mode. | - |

docs/3.1.x/use-color-mode.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,26 @@ title: useColorMode
88
## Import
99

1010
```jsx
11-
import { useColorMode } from 'native-base';
11+
import { useColorMode } from "native-base";
1212
```
1313

1414
## Example
1515

1616
```jsx isLive=true
17-
import React from 'react';
17+
import React from "react";
1818
import {
1919
NativeBaseProvider,
2020
VStack,
2121
useColorMode,
2222
Text,
2323
Button,
2424
Center,
25-
} from 'native-base';
25+
} from "native-base";
2626

2727
function UseColorMode() {
2828
const { colorMode, toggleColorMode } = useColorMode();
2929
return (
30-
<Center flex={1} bg={colorMode === 'dark' ? 'black' : 'white'}>
30+
<Center flex={1} bg={colorMode === "dark" ? "black" : "white"}>
3131
<Text fontSize="lg" display="flex">
3232
The active color mode is <Text bold>{colorMode}</Text>
3333
</Text>
@@ -51,6 +51,6 @@ export function Example() {
5151

5252
| Name | Type | Description | Default |
5353
| --------------- | --------------- | ------------------------------------------ | ------- |
54-
| colorMode | `light`, `dark` | The active color mode | `light` |
54+
| colorMode | `light`, `dark` | The active color mode. | `light` |
5555
| setColorMode | function | Use to set color mode. | - |
5656
| toggleColorMode | function | Use to toggle between light and dark mode. | - |

docs/3.2.x/use-color-mode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: useColorMode
88
## Import
99

1010
```jsx
11-
import { useColorMode } from 'native-base';
11+
import { useColorMode } from "native-base";
1212
```
1313

1414
## Example
@@ -21,6 +21,6 @@ import { useColorMode } from 'native-base';
2121

2222
| Name | Type | Description | Default |
2323
| --------------- | --------------- | ------------------------------------------ | ------- |
24-
| colorMode | `light`, `dark` | The active color mode | `light` |
24+
| colorMode | `light`, `dark` | The active color mode. | `light` |
2525
| setColorMode | function | Use to set color mode. | - |
2626
| toggleColorMode | function | Use to toggle between light and dark mode. | - |

docs/3.3.x/use-color-mode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: useColorMode
88
## Import
99

1010
```jsx
11-
import { useColorMode } from 'native-base';
11+
import { useColorMode } from "native-base";
1212
```
1313

1414
## Example
@@ -21,6 +21,6 @@ import { useColorMode } from 'native-base';
2121

2222
| Name | Type | Description | Default |
2323
| --------------- | --------------- | ------------------------------------------ | ------- |
24-
| colorMode | `light`, `dark` | The active color mode | `light` |
24+
| colorMode | `light`, `dark` | The active color mode. | `light` |
2525
| setColorMode | function | Use to set color mode. | - |
2626
| toggleColorMode | function | Use to toggle between light and dark mode. | - |

docs/3.4.x/use-color-mode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: useColorMode
88
## Import
99

1010
```jsx
11-
import { useColorMode } from 'native-base';
11+
import { useColorMode } from "native-base";
1212
```
1313

1414
## Example
@@ -21,6 +21,6 @@ import { useColorMode } from 'native-base';
2121

2222
| Name | Type | Description | Default |
2323
| --------------- | --------------- | ------------------------------------------ | ------- |
24-
| colorMode | `light`, `dark` | The active color mode | `light` |
24+
| colorMode | `light`, `dark` | The active color mode. | `light` |
2525
| setColorMode | function | Use to set color mode. | - |
2626
| toggleColorMode | function | Use to toggle between light and dark mode. | - |

docs/next/use-color-mode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: useColorMode
88
## Import
99

1010
```jsx
11-
import { useColorMode } from 'native-base';
11+
import { useColorMode } from "native-base";
1212
```
1313

1414
## Example
@@ -21,6 +21,6 @@ import { useColorMode } from 'native-base';
2121

2222
| Name | Type | Description | Default |
2323
| --------------- | --------------- | ------------------------------------------ | ------- |
24-
| colorMode | `light`, `dark` | The active color mode | `light` |
24+
| colorMode | `light`, `dark` | The active color mode. | `light` |
2525
| setColorMode | function | Use to set color mode. | - |
2626
| toggleColorMode | function | Use to toggle between light and dark mode. | - |

0 commit comments

Comments
 (0)