Skip to content

Commit

Permalink
fix: fix tailwind class order warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
yjose committed Nov 12, 2024
1 parent 4419521 commit c1c49e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/(app)/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const CreateNewPostLink = () => {
return (
<Link href="/feed/add-post" asChild>
<Pressable>
<Text className="text-primary-300 px-3">Create</Text>
<Text className="px-3 text-primary-300">Create</Text>
</Pressable>
</Link>
);
Expand Down
4 changes: 2 additions & 2 deletions src/components/ui/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const inputTv = tv({
container: 'mb-2',
label: 'text-grey-100 mb-1 text-lg dark:text-neutral-100',
input:
'font-inter mt-0 rounded-xl border-[0.5px] border-neutral-300 bg-neutral-100 px-4 py-3 text-base font-medium leading-5 dark:border-neutral-700 dark:bg-neutral-800 dark:text-white',
'mt-0 rounded-xl border-[0.5px] border-neutral-300 bg-neutral-100 px-4 py-3 font-inter text-base font-medium leading-5 dark:border-neutral-700 dark:bg-neutral-800 dark:text-white',
},

variants: {
Expand Down Expand Up @@ -114,7 +114,7 @@ export const Input = React.forwardRef<NTextInput, NInputProps>((props, ref) => {
{error && (
<Text
testID={testID ? `${testID}-error` : undefined}
className="text-danger-400 dark:text-danger-600 text-sm"
className="text-sm text-danger-400 dark:text-danger-600"
>
{error}
</Text>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export const Select = (props: SelectProps) => {
{error && (
<Text
testID={`${testID}-error`}
className="text-danger-300 dark:text-danger-600 text-sm"
className="text-sm text-danger-300 dark:text-danger-600"
>
{error}
</Text>
Expand Down

0 comments on commit c1c49e2

Please sign in to comment.