scratch-www/src/views/preview/projectshape.jsx
chrisgarrity 0bc5bf745d Fix up stats line
* Update for newer version of API - remix count in stats
* create projectShape to remove duplication
* add approximate-number to limit the size of the stats row.
2018-05-31 15:02:45 -04:00

35 lines
642 B
JavaScript

const PropTypes = require('prop-types');
const {
number,
string,
shape
} = PropTypes;
export const projectShape = shape({
id: number,
instructions: string,
title: string,
description: string,
author: shape({
id: number,
username: string
}),
image: string,
history: shape({
created: string,
modified: string,
shared: string
}),
stats: shape({
views: number,
loves: number,
favorites: number,
comments: number,
remixes: number
}),
remix: shape({
parent: number,
root: number
})
});