Skip to content

Commit 3df1b4c

Browse files
yjoseasdolo
authored andcommitted
fix: fix new ui path
1 parent 63a86cc commit 3df1b4c

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

@@ -74,7 +74,7 @@ const MyComponent = () => {
7474
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`.
7575
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.
7676

77-
<CodeBlock file="src/ui/image.tsx" />
77+
<CodeBlock file="src/components/ui/image.tsx" />
7878

7979
**Props**
8080

@@ -102,7 +102,7 @@ const MyComponent = () => {
102102

103103
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.
104104

105-
<CodeBlock file="src/ui/text.tsx" />
105+
<CodeBlock file="src/components/ui/text.tsx" />
106106

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

141141
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`.
142142

143-
<CodeBlock file="src/ui/button.tsx" />
143+
<CodeBlock file="src/components/ui/button.tsx" />
144144

145145
**Props**
146146

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

167167
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.
168168

169-
<CodeBlock file="src/ui/input.tsx" />
169+
<CodeBlock file="src/components/ui/input.tsx" />
170170

171171
**Props**
172172

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

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

203-
<CodeBlock file="src/ui/modal.tsx" />
203+
<CodeBlock file="src/components/ui/modal.tsx" />
204204

205205
**Props**
206206

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

238238
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.
239239

240-
<CodeBlock file="src/ui/select.tsx" />
240+
<CodeBlock file="src/components/ui/select.tsx" />
241241

242242
**Props**
243243

@@ -295,7 +295,7 @@ For handling common functionality like handling press events and accessibility s
295295

296296
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.
297297

298-
<CodeBlock file="src/ui/checkbox.tsx" />
298+
<CodeBlock file="src/components/ui/checkbox.tsx" />
299299

300300
**Props**
301301

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)