Skip to content

Commit

Permalink
clean up typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
ericrobskyhuntley committed Feb 27, 2024
1 parent addd088 commit 14b930b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const {navItems} = Astro.props;
<nav class="navbar has-background-danger" role="navigation" aria-label="main navigation">
<div class="navbar-start">
{
navItems.map((item, index) => (
navItems.map((item) => (
<a class="navbar-item has-text-white" href={item.path}>{item.title}</a>
))
}
Expand Down
17 changes: 16 additions & 1 deletion src/components/Organization.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
---
import { Icon } from 'astro-icon/components'
interface Props {
org: object;
org: {
name: string;
subtitle?: string;
email?: string;
phone?: string;
office?: {
address?: string;
city?: string;
state?: string;
postal?: string;
};
socials?: {
url?: string;
name?: string;
};
};
}
const { org } = Astro.props;
Expand Down
14 changes: 13 additions & 1 deletion src/components/Person.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
---
import { Icon } from 'astro-icon/components'
interface Props {
person: object;
person: {
name: string;
creds?: string[];
pronouns?: string;
roles?: string[];
email: string;
bio: string;
skills: string[];
socials?: {
url?: string;
name?: string;
};
};
}
const { person } = Astro.props;
Expand Down

0 comments on commit 14b930b

Please sign in to comment.