diff --git a/src/app/ItemPage.js b/src/app/ItemPage.js index d2e792c..04fb96e 100644 --- a/src/app/ItemPage.js +++ b/src/app/ItemPage.js @@ -42,6 +42,7 @@ import { import OutfitPreview from "./components/OutfitPreview"; import SpeciesColorPicker from "./components/SpeciesColorPicker"; import { useLocalStorage } from "./util"; +import WIPCallout from "./components/WIPCallout"; function ItemPage() { const { itemId } = useParams(); @@ -59,6 +60,7 @@ export function ItemPageContent({ itemId, isEmbedded }) { {!isEmbedded && } + Trade lists coming soon! ); } diff --git a/src/app/components/WIPCallout.js b/src/app/components/WIPCallout.js index c19792e..ec3a785 100644 --- a/src/app/components/WIPCallout.js +++ b/src/app/components/WIPCallout.js @@ -4,37 +4,52 @@ import { Box, Flex, Tooltip } from "@chakra-ui/core"; import WIPXweeImg from "../../images/wip-xwee.png"; import WIPXweeImg2x from "../../images/wip-xwee@2x.png"; -function WIPCallout({ details }) { - return ( - {details}} placement="bottom"> - - - - We're working on this page! - - WIP! - - +function WIPCallout({ children, details }) { + let content = ( + + + {children || ( + <> + + We're working on this page! + + WIP! + + )} + ); + + if (details) { + content = ( + {details}} + placement="bottom" + shouldWrapChildren + > + {content} + + ); + } + + return content; } export default WIPCallout;