From d9e544f532461ef1da08c7c1c629b403bba266b4 Mon Sep 17 00:00:00 2001 From: Amir Ekbatanifard Date: Mon, 9 Sep 2024 08:18:38 +0330 Subject: [PATCH] style: add box shadow to the history items --- .../src/popup/history/modal/HistoryItemModal.tsx | 12 ++++++------ .../src/popup/history/partials/HistoryItem.tsx | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/extension-polkagate/src/popup/history/modal/HistoryItemModal.tsx b/packages/extension-polkagate/src/popup/history/modal/HistoryItemModal.tsx index a03a64220..67b937ac1 100644 --- a/packages/extension-polkagate/src/popup/history/modal/HistoryItemModal.tsx +++ b/packages/extension-polkagate/src/popup/history/modal/HistoryItemModal.tsx @@ -28,7 +28,7 @@ interface Props { export default function HistoryItemModal ({ anotherDay, date, decimal, formatted, info, setDetailInfo, setShowDetail, token }: Props): React.ReactElement { const { t } = useTranslation(); - const _goToDetail = useCallback(() => { + const goToDetail = useCallback(() => { setDetailInfo(info); setShowDetail(true); }, [info, setDetailInfo, setShowDetail]); @@ -58,9 +58,9 @@ export default function HistoryItemModal ({ anotherDay, date, decimal, formatted {date} } - .historyItems:last-child': { border: 'none' }, bgcolor: 'background.paper', borderRadius: '5px' }}> + .historyItems:last-child': { border: 'none' }, bgcolor: 'background.paper', borderRadius: '5px', boxShadow: '0px 0px 3px 2px rgba(0, 0, 0, 0.1)', mx: '3px', width: 'calc(100% - 6px)' }}> - + {action} @@ -82,14 +82,14 @@ export default function HistoryItemModal ({ anotherDay, date, decimal, formatted - {info.success ? t('Completed') : t('Failed')} + {info.success ? t('Completed') : t('Failed')} - + diff --git a/packages/extension-polkagate/src/popup/history/partials/HistoryItem.tsx b/packages/extension-polkagate/src/popup/history/partials/HistoryItem.tsx index cad81a54e..3a3707296 100644 --- a/packages/extension-polkagate/src/popup/history/partials/HistoryItem.tsx +++ b/packages/extension-polkagate/src/popup/history/partials/HistoryItem.tsx @@ -58,7 +58,7 @@ export default function HistoryItem ({ anotherDay, chainName, date, decimal, for {date} } - .historyItems:last-child': { border: 'none' }, bgcolor: 'background.paper', borderRadius: '5px' }}> + .historyItems:last-child': { border: 'none' }, bgcolor: 'background.paper', borderRadius: '5px', boxShadow: '0px 0px 3px 2px rgba(0, 0, 0, 0.1)', mx: '3px', width: 'calc(100% - 6px)' }}>