react-icons/fi#FiArrowUpRight TypeScript Examples
The following examples show how to use
react-icons/fi#FiArrowUpRight.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Transaction.tsx From dxvote with GNU Affero General Public License v3.0 | 6 votes |
Transaction: React.FC<TransactionProps> = ({ transaction }) => {
const { chainId } = useWeb3React();
const networkName = getChains().find(chain => chain.id === chainId).name;
return (
<TransactionContainer>
<Link
href={getBlockchainLink(transaction.hash, networkName)}
target="_blank"
>
{transaction.summary} <FiArrowUpRight />
</Link>
<Icon>
{!transaction.receipt ? (
<PendingCircle height="16px" width="16px" color="#000" />
) : transaction.receipt?.status === 1 ? (
<FiCheckCircle />
) : (
<FiXCircle />
)}
</Icon>
</TransactionContainer>
);
}
Example #2
Source File: index.tsx From livepeer-com with MIT License | 5 votes |
PastInvoicesTable = ({ invoices }) => {
return (
<Table
css={{
minWidth: "100%",
borderCollapse: "separate",
borderSpacing: 0,
tableLayout: "initial",
}}>
<Thead>
<Tr>
<Th>Date</Th>
<Td>Summary</Td>
<Td>Amount</Td>
<Td>Download</Td>
</Tr>
</Thead>
<Tbody>
{invoices.data
.filter((invoice) => invoice.lines.total_count > 1)
.map((invoice, i) => (
<Tr key={i}>
<Th>
{new Date(invoice.created * 1000).toLocaleDateString("en-US", {
year: "numeric",
month: "long",
})}
</Th>
<Td>
{
products[
invoice.lines.data.filter(
(item) => item.type === "subscription"
)[0]?.plan.product
]?.name
}{" "}
Plan
</Td>
<Td>${(invoice.total / 100).toFixed(2)}</Td>
<Td>
<A
variant="primary"
download
target="_blank"
rel="noopener noreferrer"
href={invoice.hosted_invoice_url}
css={{ display: "flex", alignItems: "center" }}>
Invoice
<FiArrowUpRight css={{ ml: 1 }} />
</A>
</Td>
</Tr>
))}
</Tbody>
</Table>
);
}