diff --git a/src/components/GridRep/index.css b/src/components/GridRep/index.css index 0e8c6ee0..16135fb9 100644 --- a/src/components/GridRep/index.css +++ b/src/components/GridRep/index.css @@ -33,6 +33,8 @@ } .GridRep .grid_weapon { + background: white; + border-radius: 4px; float: left; margin: 0 8px 8px 0; height: 40px; @@ -43,9 +45,9 @@ margin-right: 0; } -.GridRep .weapon img[src*="jpg"] { +.GridRep .grid_mainhand img[src*="jpg"], +.GridRep .grid_weapon img[src*="jpg"] { border-radius: 4px; - height: 100%; width: 100%; -} - + height: 100%; +} \ No newline at end of file diff --git a/src/components/GridRep/index.tsx b/src/components/GridRep/index.tsx index 6352e5c2..02f81bf7 100644 --- a/src/components/GridRep/index.tsx +++ b/src/components/GridRep/index.tsx @@ -38,28 +38,39 @@ const GridRep = (props: Props) => { props.onClick(props.shortcode) } + function generateMainhandImage() { + return (mainhand) + ? + : + } + + function generateGridImage(position: number) { + return (weapons[position]) + ? + : + } + return (
- + {generateMainhandImage()}