Skip to content

Commit

Permalink
fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Franpastoragusti committed Jul 3, 2024
1 parent 4c3592d commit 5172af3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/nextjs/components/checkbox/checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const CheckboxItem = ({ value, name, onChange }: ICheckboxItem) => {
/>
</div>
<div>
<h3 className="">{name}</h3>
<h3 className="font-bold">{name}</h3>
<span className="">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
</span>
Expand Down
15 changes: 7 additions & 8 deletions packages/nextjs/pages/api/totals/[id]/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
return res.status(405).json({ message: "Method not allowed." });
}

const id = "0x000000000000007f2a005d9c88cc001b5b9ec4afb8b300023cb8abc11b946000";

const querySnapshot: DocumentSnapshot | null = await getProjectTotalsById(id);
try {
const id = "0x000000000000007f2a005d9c88cc001b5b9ec4afb8b300023cb8abc11b946000";

if (!querySnapshot) {
return res.status(404).json({ message: "No data" });
}
const totals = querySnapshot.data() as ProjectTotalsRecord;
const querySnapshot: DocumentSnapshot | null = await getProjectTotalsById(id);

try {
if (!querySnapshot) {
return res.status(404).json({ message: "No data" });
}
const totals = querySnapshot.data() as ProjectTotalsRecord;
res.status(200).json({ data: totals });
} catch (error) {
console.error(error);
Expand Down

0 comments on commit 5172af3

Please sign in to comment.