mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-18 21:44:06 +01:00
chore: eslint fix
This commit is contained in:
parent
f0c4f5df89
commit
aeca9ed2d8
@ -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'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't have businesses</p>
|
||||
</CardContent>
|
||||
</Card>
|
||||
);
|
||||
|
||||
@ -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'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't have any projects</p>
|
||||
</CardContent>
|
||||
</Card>
|
||||
);
|
||||
|
||||
@ -48,7 +48,7 @@ export default function ApplyBusiness() {
|
||||
}
|
||||
}
|
||||
|
||||
const { data, error } = await supabase
|
||||
const { error } = await supabase
|
||||
.from("business_application")
|
||||
.insert([
|
||||
{
|
||||
|
||||
@ -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">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user