mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-12 00:31:11 -05:00
0bc5bf745d
* 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.
35 lines
642 B
JavaScript
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
|
|
})
|
|
});
|