Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh committed Nov 10, 2023
1 parent 4efc5ed commit 53ef61d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 0 additions & 2 deletions packages/crypto-frontmatter/src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import { FrontmatterIndex, getFrontmatterCollection } from './index';

export interface FrontmatterContent extends FrontmatterIndex {
html: string;
caip2: string;
namespace: string;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions packages/crypto-frontmatter/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export interface FrontmatterIndex {
modifiedDate: number;
type: string;
fields: {
caip2: string;
namespace: string;
symbol: string;
decimals: number;
title?: string;
Expand Down
2 changes: 1 addition & 1 deletion website/components/contented/FrontmatterImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function FrontmatterImage(props: { frontmatter: FrontmatterIndex; type: '

return (
<Image
src={requireCryptoFrontmatter(props.frontmatter.caip2, props.frontmatter.namespace, image.path)}
src={requireCryptoFrontmatter(props.frontmatter.fields.caip2, props.frontmatter.fields.namespace, image.path)}
alt={`${props.frontmatter.fields.symbol} ${props.type}`}
width={image.size.width}
height={image.size.height}
Expand Down
4 changes: 2 additions & 2 deletions workspace/contented-config/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ export default function config(options) {
// Remove all non-essential fields
return {
path: caip19,
caip2: options.caip2,
namespace: options.namespace,
fileId: fileContent.fileId,
modifiedDate: fileContent.modifiedDate,
type: fileContent.type,
fields: {
...fileContent.fields,
caip2: options.caip2,
namespace: options.namespace,
images: await computeImageField(fileContent, filePath),
},
html: fileContent.html,
Expand Down

0 comments on commit 53ef61d

Please sign in to comment.