Skip to content

Commit 947851f

Browse files
committed
fix: fix new ui path
1 parent 7e9df35 commit 947851f

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

docs/src/content/docs/ui-and-theme/Forms.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ As we mention in the components section of the documentation [here](../component
2020

2121
Here is the complete code of our `ControlledInput` when we use `useController` hook from react-hook-form to handle form state and validation rules:
2222

23-
<CodeBlock file="src/ui/input.tsx" />
23+
<CodeBlock file="src/components/ui/input.tsx" />
2424

2525
If you want to create your own controlled component, you just need to make sure your component props type extends from `InputControllerType` the same way we are using it with `ControlledInput`.
2626
Here is another example of a Select input we create using the same approach as `ControlledInput`:
2727

28-
<CodeBlock file="src/ui/select.tsx" />
28+
<CodeBlock file="src/components/ui/select.tsx" />
2929

3030
## Use Case
3131

docs/src/content/docs/ui-and-theme/components.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ To save time when creating new components or screens, we can simply start typing
4545

4646
The `List` component references the FlashList component from the `@shopify/flash-list` package.
4747

48-
<CodeBlock file="src/ui/list.tsx" />
48+
<CodeBlock file="src/components/ui/list.tsx" />
4949

5050
**Props**
5151

@@ -75,7 +75,7 @@ const MyComponent = () => {
7575
For the `Image` component, we use the `expo-image` library to provide a fast and performant image component. The `Image` component is a wrapper around the `Image` component from `expo-image` package with additional styling provided by `nativewind`.
7676
The `cssInterop` function from `nativewind` is used to apply styling and, in this way, the `className` property is applied to the `style` property of the `Image` component.
7777

78-
<CodeBlock file="src/ui/image.tsx" />
78+
<CodeBlock file="src/components/ui/image.tsx" />
7979

8080
**Props**
8181

@@ -104,7 +104,7 @@ const MyComponent = () => {
104104

105105
With this custom Text component, you can use the translation key as the `tx` prop, and it will automatically translate the text based on the current locale, as well as support right-to-left (RTL) languages based on the selected locale.
106106

107-
<CodeBlock file="src/ui/text.tsx" />
107+
<CodeBlock file="src/components/ui/text.tsx" />
108108

109109
:::tip
110110
You can also use the `t` snippet to create a simple Text with a default `className`.
@@ -142,7 +142,7 @@ The `tv` function from `tailwind-variants` is used to create a function that gen
142142

143143
Each variant should include styles for the `container`, `indicator`, and `label` keys. The `container` style is for the `Pressable`, the `label` style is for the `Text` component, and the `indicator` style is for the `ActivityIndicator` component when the `loading` prop is `true`.
144144

145-
<CodeBlock file="src/ui/button.tsx" />
145+
<CodeBlock file="src/components/ui/button.tsx" />
146146

147147
**Props**
148148

@@ -168,7 +168,7 @@ The component utilizes the tv function from Tailwind Variants to define styling
168168

169169
We tried to keep the ` Input` component as simple as possible, but you can add more functionality, such as `onFocus` and `onBlur`, or adding left and right icons to the input.
170170

171-
<CodeBlock file="src/ui/input.tsx" />
171+
<CodeBlock file="src/components/ui/input.tsx" />
172172

173173
**Props**
174174

@@ -203,7 +203,7 @@ We opt to use a bottom sheet instead of a modal to make it more flexible and eas
203203

204204
Based on your needs, you can use the `Modal` if you don't have a fixed height for the modal content.
205205

206-
<CodeBlock file="src/ui/modal.tsx" />
206+
<CodeBlock file="src/components/ui/modal.tsx" />
207207

208208
**Props**
209209

@@ -241,7 +241,7 @@ The component uses the `tv` function from Tailwind Variants to define styling sl
241241

242242
Feel free to update the component implementation to fit your need and as you keep the same Props signature for the `Select` component the component will work with our form handling solution without any changes.
243243

244-
<CodeBlock file="src/ui/select.tsx" />
244+
<CodeBlock file="src/components/ui/select.tsx" />
245245

246246
**Props**
247247

@@ -299,7 +299,7 @@ For handling common functionality like handling press events and accessibility s
299299

300300
Animations are applied to the icons using the `MotiView` component from the `moti` library. These animations change the appearance of the icons based on their checked state.
301301

302-
<CodeBlock file="src/ui/checkbox.tsx" />
302+
<CodeBlock file="src/components/ui/checkbox.tsx" />
303303

304304
**Props**
305305

docs/src/content/docs/ui-and-theme/fonts.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
3131
Next, Make sure to add your new font to Tailwind CSS config to use it with `className`
3232

3333
```js title="tailwind.config.js"
34-
const colors = require('./src/ui/theme/colors');
34+
const colors = require('./src/components/ui/theme/colors');
3535

3636
/** @type {import('tailwindcss').Config} */
3737
module.exports = {

tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const colors = require('./src/ui/colors');
1+
const colors = require('./src/components/ui/colors');
22

33
/** @type {import('tailwindcss').Config} */
44
module.exports = {

0 commit comments

Comments
 (0)