From df9aad36c448deb7fb48e0f86e6442cdd8ce7ac6 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Sun, 25 Dec 2022 04:54:16 -0800 Subject: [PATCH] Add cell image placeholder --- .../cells/combined-title-cell.tsx | 32 +++++++++++++++---- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/src/renderer/components/virtual-table/cells/combined-title-cell.tsx b/src/renderer/components/virtual-table/cells/combined-title-cell.tsx index eb479e23..b38ff156 100644 --- a/src/renderer/components/virtual-table/cells/combined-title-cell.tsx +++ b/src/renderer/components/virtual-table/cells/combined-title-cell.tsx @@ -1,6 +1,8 @@ import React, { useMemo } from 'react'; import type { ICellRendererParams } from '@ag-grid-community/core'; +import { Center } from '@mantine/core'; import { motion } from 'framer-motion'; +import { RiAlbumFill } from 'react-icons/ri'; import { generatePath } from 'react-router'; import { Link } from 'react-router-dom'; import styled from 'styled-components'; @@ -72,13 +74,29 @@ export const CombinedTitleCell = ({ value, rowIndex, node }: ICellRendererParams return ( - + {value.imageUrl ? ( + + ) : ( +
+ +
+ )}