Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions app/(routes)/organizers/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import "@/app/globals.css";
import Wrapper from "@/components/layout/Wrapper";

Expand All @@ -16,7 +15,7 @@ export default async function Organizers() {
<ul
className="grid grid-cols-2 md:grid-cols-3 gap-2 justify-center flex-auto mt-10 text-center"
>
{teamMembers.map(({ name, imageUrl, team, role, linkedInUrl }) => (
{teamMembers.map(({ name, imageUrl, role, linkedInUrl }) => (
<li key={name} className="m-4">
<a href={linkedInUrl}>
<img
Expand All @@ -29,11 +28,9 @@ export default async function Organizers() {
{name}
</h3>
<p className="text-sm leading-6 text-gray-600">{role}</p>
<p className="text-sm leading-6 text-gray-600">{team}</p>
</li>
))}
</ul>
</Wrapper>
);
}

}
5 changes: 2 additions & 3 deletions app/service/notion/NotionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ const notion = new Client({ auth: process.env.NOTION_API_KEY });

// this function fetches data from The Notion Database(Table).
const fetchDataFromNotion = async () => {
const databaseId = process.env.NOTION_API_DATABASE;
const databaseId = process.env.NOTION_API_DATABASE!;
const response = await notion.databases.query({ database_id: databaseId });

// we map through the array of object to pull out the properties that we need for rendering.
const teamResults = response.results.map((page) => {
const teamResults = response.results.map((page: any) => {
return {
id: page.id,
name: page.properties.Name.title[0]?.plain_text,
role: page.properties.Role.multi_select[0].name,
// team: page.properties.Teams.rich_text[0]?.plain_text,
imageUrl: page.properties.Image.files[0]?.file.url,
linkedInUrl: page.properties.LinkedIn.rich_text[0]?.plain_text,
notionId: page.properties.NotionId.rich_text[0]?.plain_text
Expand Down
8 changes: 8 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ N/A
-->
---

## [1.1.4] - 2023-11-22



### Updated
- Debugging
---

## [1.1.3] - 2023-10-24

### Added
Expand Down