react-icons/ai#AiOutlinePlus JavaScript Examples

The following examples show how to use react-icons/ai#AiOutlinePlus. 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: NewNoteButton.js    From fokus with GNU General Public License v3.0 6 votes vote down vote up
export function NewNoteButton({ setNoteInPreview , isGridView }) {
    let dispatch = useDispatch();
    const meta = useSelector((state) => state.notes.meta);

    const handleNewNoteAction = () => {
        let newNote = {
            id: Math.floor(Math.random() * 10000),
            globalKey: meta.globalKey,
            content: "",
            color: colorOptions.white,
            updatedAt: new Date().toISOString(),
        };
        dispatch(create(newNote));
        setNoteInPreview(newNote);
    };
    return (
        <>
            <NewNoteButtonContainer isGridView={isGridView} onClick={() => handleNewNoteAction()}>
                <AddIcon>
                    <AiOutlinePlus />
                </AddIcon>
            </NewNoteButtonContainer>
        </>
    );
}
Example #2
Source File: styles.js    From plataforma-sabia with MIT License 5 votes vote down vote up
PlusIcon = styled(AiOutlinePlus).attrs(({ theme: { colors } }) => ({
	color: colors.secondary,
}))``