chore: eslint fix

This commit is contained in:
Sosokker 2024-11-07 03:29:18 +07:00
parent f0c4f5df89
commit aeca9ed2d8
4 changed files with 8 additions and 7 deletions

View File

@ -13,7 +13,7 @@ export const BusinessProfile = async ({ userId }: { userId: string }) => {
<CardTitle>Error Loading Data</CardTitle>
</CardHeader>
<CardContent>
<p>Can't load business data</p>
<p>Can&apos;t load business data</p>
</CardContent>
</Card>
);
@ -26,7 +26,7 @@ export const BusinessProfile = async ({ userId }: { userId: string }) => {
<CardTitle>No Business Found</CardTitle>
</CardHeader>
<CardContent>
<p>This business account doesn't have businesses</p>
<p>This business account doesn&apos;t have businesses</p>
</CardContent>
</Card>
);

View File

@ -16,7 +16,7 @@ export const ProjectProfileSection = async ({ userId }: { userId: string }) => {
<CardTitle>Error Loading Data</CardTitle>
</CardHeader>
<CardContent>
<p>Can't load business data</p>
<p>Can&apos;t load business data</p>
</CardContent>
</Card>
);
@ -29,7 +29,7 @@ export const ProjectProfileSection = async ({ userId }: { userId: string }) => {
<CardTitle>No Project Found</CardTitle>
</CardHeader>
<CardContent>
<p>This business doesn't have any projects</p>
<p>This business doesn&apos;t have any projects</p>
</CardContent>
</Card>
);

View File

@ -48,7 +48,7 @@ export default function ApplyBusiness() {
}
}
const { data, error } = await supabase
const { error } = await supabase
.from("business_application")
.insert([
{

View File

@ -70,7 +70,6 @@ export default function Dashboard() {
>([]);
const [isSuccess, setIsSuccess] = useState(false);
const [graphType, setGraphType] = useState("line");
const [currentTab, setCurrentTab] = useState();
const dealList = useDealList();
const totalDealAmount = dealList?.reduce((sum, deal) => sum + deal.deal_amount, 0) || 0;
useEffect(() => {
@ -120,7 +119,9 @@ export default function Dashboard() {
<Tabs defaultValue={projects[0].project_name} className="space-y-4">
<TabsList>
{projects.map((project) => (
<TabsTrigger value={project.project_name}>{project.project_name}</TabsTrigger>
<TabsTrigger key={project.id} value={project.project_name}>
{project.project_name}
</TabsTrigger>
))}
</TabsList>
<TabsContent value={projects[0].project_name} className="space-y-4">