mirror of
https://github.com/brianlovin/security-checklist.git
synced 2026-03-11 08:55:31 +00:00
Fix flow
This commit is contained in:
parent
8cae589f24
commit
9fa3db1e21
3 changed files with 22 additions and 15 deletions
|
|
@ -8,10 +8,13 @@ type Props = {
|
|||
resource: ChecklistResource,
|
||||
};
|
||||
|
||||
export const Apps = ({ resource }: Props) => (
|
||||
<AppsContainer>
|
||||
{resource.apps.map(app => (
|
||||
<AppRow key={app.name} app={app} />
|
||||
))}
|
||||
</AppsContainer>
|
||||
);
|
||||
export const Apps = ({ resource }: Props) => {
|
||||
if (!resource.apps) return null;
|
||||
return (
|
||||
<AppsContainer>
|
||||
{resource.apps.map(app => (
|
||||
<AppRow key={app.name} app={app} />
|
||||
))}
|
||||
</AppsContainer>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -8,11 +8,14 @@ type Props = {
|
|||
resource: ChecklistResource,
|
||||
};
|
||||
|
||||
export const Resources = ({ resource }: Props) => (
|
||||
<React.Fragment>
|
||||
<SectionHeading>More Resources</SectionHeading>
|
||||
{resource.resources.map(r => (
|
||||
<ResourceRow key={resource.name} resource={r} />
|
||||
))}
|
||||
</React.Fragment>
|
||||
);
|
||||
export const Resources = ({ resource }: Props) => {
|
||||
if (!resource.resources) return null;
|
||||
return (
|
||||
<React.Fragment>
|
||||
<SectionHeading>More Resources</SectionHeading>
|
||||
{resource.resources.map(r => (
|
||||
<ResourceRow key={r.name} resource={r} />
|
||||
))}
|
||||
</React.Fragment>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ export type App = {
|
|||
name: string,
|
||||
image: string,
|
||||
sources: AppSource,
|
||||
url: string,
|
||||
};
|
||||
|
||||
export type ChecklistResource = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue