diff --git a/package.json b/package.json index 204d2fc..f7badff 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "astro": "^4.0.6", "astro-icon": "1.0.0-next.2", "crypto-js": "^4.1.1", + "flowbite": "^2.3.0", "isobject": "^4.0.0", "jsonld": "^5.2.0", "jwt-decode": "^3.0.0", diff --git a/src/components/Modal.astro b/src/components/Modal.astro new file mode 100644 index 0000000..35864e7 --- /dev/null +++ b/src/components/Modal.astro @@ -0,0 +1,47 @@ +--- +const { id, title } = Astro.props; +--- + +
diff --git a/src/components/common/Members.astro b/src/components/common/Members.astro index cc86e57..a88ef4a 100644 --- a/src/components/common/Members.astro +++ b/src/components/common/Members.astro @@ -1,5 +1,6 @@ --- import dataProvider from '~/config/dataProvider'; +import Modal from '../Modal.astro'; export interface Props { associationsUris: string | [string]; @@ -14,12 +15,31 @@ const { data: associations } = await dataProvider.getMany('MembershipAssociation const { data: members } = await dataProvider.getMany('Person', { ids: associations.map((a) => a['pair:membershipActor']), }); + +const { data: roles } = await dataProvider.getMany('Person', { + ids: [...new Set(associations.map((a) => a['pair:membershipRole']))], +}); --- { - members?.map((member) => ( -