Browse Source

ui(web): improve receive sms tab ui

pull/8/head
isra el 2 years ago
parent
commit
edd6885e1e
  1. 8
      web/components/dashboard/ReceiveSMS.tsx

8
web/components/dashboard/ReceiveSMS.tsx

@ -115,14 +115,14 @@ const ReceivedSMSList = () => {
<Thead> <Thead>
<Tr> <Tr>
<Th>sender</Th> <Th>sender</Th>
<Th>message</Th>
<Th colSpan={4}>message</Th>
<Th>received at</Th> <Th>received at</Th>
</Tr> </Tr>
</Thead> </Thead>
<Tbody> <Tbody>
{receivedSMSListLoading && ( {receivedSMSListLoading && (
<Tr> <Tr>
<Td colSpan={3} textAlign='center'>
<Td colSpan={6} textAlign='center'>
<Spinner size='lg' /> <Spinner size='lg' />
</Td> </Td>
</Tr> </Tr>
@ -130,7 +130,7 @@ const ReceivedSMSList = () => {
{!receivedSMSListLoading && {!receivedSMSListLoading &&
receivedSMSListData.length == 0 && ( receivedSMSListData.length == 0 && (
<Td colSpan={3} textAlign='center'>
<Td colSpan={6} textAlign='center'>
No SMS received No SMS received
</Td> </Td>
)} )}
@ -141,7 +141,7 @@ const ReceivedSMSList = () => {
({ _id, sender, message, receivedAt }) => ( ({ _id, sender, message, receivedAt }) => (
<Tr key={_id}> <Tr key={_id}>
<Td>{sender}</Td> <Td>{sender}</Td>
<Td whiteSpace='pre-wrap' maxW='300px'>
<Td whiteSpace='pre-wrap' colSpan={4}>
{message} {message}
</Td> </Td>
<Td> <Td>

Loading…
Cancel
Save