Skip to content

Commit

Permalink
fix: console warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
chaofan232 committed Oct 27, 2021
1 parent 331576d commit 73f2ea4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions www/examples/Tile.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const Example = () => {
<div>
<React.Fragment>
<Carousel autoplay={false} style={{ width: '55vw' }} dots={false}>
{_.map(items, (item) => (
<Tile {...item} style={{ paddingRight: 10, width: 220, height: 300 }} />
{_.map(items, (item, i) => (
<Tile key={i} {...item} style={{ paddingRight: 10, width: 220, height: 300 }} />
))}
</Carousel>
</React.Fragment>
Expand Down
7 changes: 4 additions & 3 deletions www/examples/UserListPicker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ import DesignNotes from '../containers/DesignNotes.jsx';
## User List Picker

```jsx live=true
const avatarColor = (user) => (user.avatar ? '' : 'cyan');
const avatarColor = (user) => (user.status === 'active' ? 'blue' : 'orange');
const emptySvgSymbol = <SvgSymbol href="./assets/svg-symbols.svg#checklist-incomplete" />;
const teamMember1 = {
avatar: '../assets/user-avatar.jpeg',
givenName: 'John',
id: 1,
surname: 'Smith',
status: 'active',
};
const teamMember2 = { givenName: 'Jane', id: 2, surname: 'Doe' };
const teamMember3 = { givenName: 'Jack', id: 3, surname: 'White' };
const teamMember2 = { givenName: 'Jane', id: 2, surname: 'Doe', status: 'active' };
const teamMember3 = { givenName: 'Jack', id: 3, surname: 'White', status: 'pending' };
const listPickerItems = [teamMember1, teamMember2, teamMember3];
const listPickerInitialSelection = [teamMember2];
const listPickerItemHeaders = {
Expand Down

0 comments on commit 73f2ea4

Please sign in to comment.