react-icons/ai#AiOutlineWarning TypeScript Examples
The following examples show how to use
react-icons/ai#AiOutlineWarning.
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: NotificationsTable.tsx From bluebubbles-server with Apache License 2.0 | 6 votes |
NotificationsTable = ({ notifications }: { notifications: Array<NotificationItem> }): JSX.Element => {
return (
<Table variant="striped" colorScheme="blue">
<TableCaption>
Alerts are normal to have. As long as the server recovers,
you have nothing to worry about. Alerts are mostly helpful when you
are experiencing an issue and want to see if any errors have occured.
</TableCaption>
<Thead>
<Tr>
<Th>Type</Th>
<Th>Notification</Th>
<Th isNumeric>Time / Read</Th>
</Tr>
</Thead>
<Tbody>
{notifications.map(item => (
<Tr key={item.id} color={(item?.read ?? false) ? 'gray.400' : 'current'}>
<Td>
<Icon
ml={2}
fontSize="24"
as={AlertTypeIcon[item.type] ?? AiOutlineWarning}
/>
</Td>
<Td>{item.message}</Td>
<Td isNumeric>
<Flex flexDirection="row" justifyContent='flex-end' alignItems='center'>
<Text mr={1}>{item.timestamp.toLocaleString()}</Text>
{(item?.read ?? false) ? <BsCheckAll fontSize={24} /> : null}
</Flex>
</Td>
</Tr>
))}
</Tbody>
</Table>
);
}
Example #2
Source File: calculator.tsx From po8klasie with GNU General Public License v3.0 | 6 votes |
CalculatorPage: FC = () => {
return (
<AppLayout>
<NextSeo
title="Kalkulator punktów"
description="Oblicz swoje punkty rekrutacyjne z kalkulatorem punktów wyszukiwarki szkół średnich po8klasie"
/>
<div className="w-container mx-auto">
<h1 className="flex items-center text-3xl font-bold mt-5 lg:mt-10">
Kalkulator punktów
<span className="flex rounded-full bg-primaryBg text-primary uppercase px-2 py-1 text-xs font-bold ml-3">
New
</span>
</h1>
<p className="my-10">
Podaj swoje oceny, wyniki z egzaminu ósmoklasisty oraz dodatkowe osiągnięcia (jeśli takie
masz) i oblicz punkty, jakie uzyskasz podczas rekrutacji do szkoły średniej.
</p>
<div
className="bg-primaryBg border-l-4 border-primary text-primary p-4 lg:w-1/2 xl:w-1/3 rounded "
role="alert"
>
<p className="font-bold mb-2 flex items-center font-primary">
<AiOutlineWarning className="mr-2 text-xl" />
Przypomnienie
</p>
<p>Progi punktowe zmieniają się co roku i zależą od wielu czynników.</p>
</div>
<Calculator />
</div>
</AppLayout>
);
}
Example #3
Source File: NotificationsTable.tsx From bluebubbles-server with Apache License 2.0 | 5 votes |
AlertTypeIcon: NodeJS.Dict<IconType> = { warn: AiOutlineWarning, info: AiOutlineInfoCircle, error: BiErrorAlt }