Skip to content

Commit

Permalink
null
Browse files Browse the repository at this point in the history
  • Loading branch information
itstolexy committed Jul 20, 2024
1 parent 2bb6b10 commit 4b8688e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/components/constant/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const defaultFormError: IFormError = {
[FormField.bio]: null,

Check failure on line 12 in app/components/constant/index.tsx

View workflow job for this annotation

GitHub Actions / eslint

Use `undefined` instead of `null`
};

export const defaultAlert: { message: string | null; classType?: string } = {
message: null,
export const defaultAlert: { message: string | undefined; classType?: string } = {

Check failure on line 15 in app/components/constant/index.tsx

View workflow job for this annotation

GitHub Actions / eslint

Insert `⏎·`
message: undefined,

Check failure on line 16 in app/components/constant/index.tsx

View workflow job for this annotation

GitHub Actions / eslint

Insert `··`
classType: undefined,

Check failure on line 17 in app/components/constant/index.tsx

View workflow job for this annotation

GitHub Actions / eslint

Insert `··`
};

Check failure on line 18 in app/components/constant/index.tsx

View workflow job for this annotation

GitHub Actions / eslint

Insert `··`
12 changes: 6 additions & 6 deletions app/components/textarea/index.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import React from "react";

interface Properties {
interface Props {

Check failure on line 3 in app/components/textarea/index.tsx

View workflow job for this annotation

GitHub Actions / eslint

The variable `Props` should be named `Properties`. A more descriptive name will do too
label: string;
name: string;
value: string;
placeholder?: string;
disabled?: boolean;
error?: string | null;
handleChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
handleChange: (error: React.ChangeEvent<HTMLTextAreaElement>) => void;
style?: React.CSSProperties;
}

export const TextAreaField: React.FC<Properties> = ({
export const TextAreaField: React.FC<Props> = ({
label,
name,
placeholder,
Expand All @@ -26,14 +26,14 @@ export const TextAreaField: React.FC<Properties> = ({
{label}
</label>
<div className="flex flex-col gap-1">
<div className="w-full rounded-md bg-white text-base text-black outline-0">
<div className="w-full bg-white text-base text-black outline-0 rounded-md">

Check failure on line 29 in app/components/textarea/index.tsx

View workflow job for this annotation

GitHub Actions / eslint

Replace `bg-white·text-base·text-black·outline-0·rounded-md` with `rounded-md·bg-white·text-base·text-black·outline-0`
<textarea
id={name}
placeholder={placeholder}
disabled={disabled}
value={value}
onChange={handleChange}
className="h-[80px] w-full text-wrap rounded-md border border-[#DC2626] bg-white px-2 outline-0 placeholder:text-sm placeholder:text-[#C2C2C2]"
className="w-full h-[80px] border border-[#DC2626] outline-0 bg-white px-2 placeholder:text-[#C2C2C2] placeholder:text-sm rounded-md text-wrap"

Check failure on line 36 in app/components/textarea/index.tsx

View workflow job for this annotation

GitHub Actions / eslint

Replace `w-full·h-[80px]·border·border-[#DC2626]·outline-0·bg-white·px-2·placeholder:text-[#C2C2C2]·placeholder:text-sm·rounded-md·text-wrap` with `h-[80px]·w-full·text-wrap·rounded-md·border·border-[#DC2626]·bg-white·px-2·outline-0·placeholder:text-sm·placeholder:text-[#C2C2C2]`
/>
</div>
{error && <span className="text-xs text-[#DC2626]">* {error}</span>}
Expand All @@ -42,4 +42,4 @@ export const TextAreaField: React.FC<Properties> = ({
);
};

export default TextAreaField;
export default TextAreaField;

Check failure on line 45 in app/components/textarea/index.tsx

View workflow job for this annotation

GitHub Actions / eslint

Insert `⏎`
2 changes: 2 additions & 0 deletions app/routes/_index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { MetaFunction } from "@remix-run/node";
import Bio from "~/components/bio";

import { Button } from "~/components/ui/button";
import CardPlatform from "~/components/ui/card/card-platform";
Expand Down Expand Up @@ -55,6 +56,7 @@ export default function Index() {
</a>
</li>
</ul>
<Bio />
</div>
);
}

0 comments on commit 4b8688e

Please sign in to comment.