~ajk/santas-little-helper

ddbfdee9b8d6dd5b78cef49666a5ae7b0b21b8e2 — Andrew Kay 9 months ago 5cb387e
Update artwork
A ui-react/public/images/artwork/1.jpg => ui-react/public/images/artwork/1.jpg +0 -0
A ui-react/public/images/artwork/2.jpg => ui-react/public/images/artwork/2.jpg +0 -0
A ui-react/public/images/artwork/3.jpg => ui-react/public/images/artwork/3.jpg +0 -0
A ui-react/public/images/artwork/4.jpg => ui-react/public/images/artwork/4.jpg +0 -0
A ui-react/public/images/artwork/5.jpg => ui-react/public/images/artwork/5.jpg +0 -0
D ui-react/public/images/artwork/fox.png => ui-react/public/images/artwork/fox.png +0 -0
D ui-react/public/images/artwork/reindeer.png => ui-react/public/images/artwork/reindeer.png +0 -0
A ui-react/src/components/common/Artwork.js => ui-react/src/components/common/Artwork.js +19 -0
@@ 0,0 1,19 @@
import React from "react";

class Artwork extends React.Component {
    constructor() {
        super();

        this.state = {
            number: Math.floor((Math.random() * 5) + 1)
        };
    }

    render() {
        return (
            <img src={`/images/artwork/${this.state.number}.jpg`} width="300" alt="" classname="mt-3" />
        );
    }
};

export default Artwork;

M ui-react/src/components/groups/GroupPage.js => ui-react/src/components/groups/GroupPage.js +2 -1
@@ 6,6 6,7 @@ import { Link } from "react-router-dom";
import MemberCard from "./MemberCard";
import ListCard from "./ListCard";
import InviteGroupMemberModal from "./InviteGroupMemberModal";
import Artwork from "../common/Artwork";

import GroupApi from "../../api/GroupApi";



@@ 132,7 133,7 @@ class GroupPage extends React.Component {

                    <div className="row">
                        <div className="col text-center">
                            <img src="/images/artwork/reindeer.png" width="250" height="250" alt="" className="mt-3" />
                            <Artwork />
                        </div>
                    </div>


M ui-react/src/components/lists/ListPage.js => ui-react/src/components/lists/ListPage.js +2 -1
@@ 10,6 10,7 @@ import { isPersonalList, isListOwnedBy, isReservedByMe, isPurchasedByMe } from "

import ListItemModal from "./ListItemModal";
import { ReserveButton, PurchaseButton, DeleteButton } from "../common/ListItemButtons";
import Artwork from "../common/Artwork";

function normalizeUrl(url) {
    if(R.isNil(url))


@@ 282,7 283,7 @@ class ListPage extends React.Component {

                    <div className="row">
                        <div className="col text-center">
                            <img src="/images/artwork/fox.png" width="300" height="130" alt="" className="mt-3" />
                            <Artwork />
                        </div>
                    </div>