diff --git a/.aiassistant/rules/guidelines.md b/.aiassistant/rules/guidelines.md index 6527f29b..c80037fb 100644 --- a/.aiassistant/rules/guidelines.md +++ b/.aiassistant/rules/guidelines.md @@ -67,7 +67,8 @@ export function ProfileCard({user, profile}: ProfileCardProps) { We prefer many smaller components that each represent one logical unit, rather than one large component. -Export the main component at the top of the file. Name the component the same as the file (e.g., `profile-card.tsx` → `ProfileCard`). +Export the main component at the top of the file. Name the component the same as the file (e.g., `profile-card.tsx` → +`ProfileCard`). ### API Calls @@ -91,18 +92,21 @@ export async function getStaticProps() { import {useAPIGetter} from 'web/hooks/use-api-getter' function ProfileList() { - const {data, refresh} = useAPIGetter('get-profiles', {}) + const {data, refresh} = useAPIGetter('get-profiles', {}) - if (!data) return + if (!data) return - return ( -
- {data.profiles.map((profile) => ( - - ))} - -
- ) + return ( +
+ { + data.profiles.map((profile) => ( + +)) +} +