react-icons/fa#FaThList JavaScript Examples

The following examples show how to use react-icons/fa#FaThList. 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: NotesViewToggle.js    From fokus with GNU General Public License v3.0 6 votes vote down vote up
export function NotesViewToggle() {
    const isGridView = useSelector((s) => s.settings.isGridView);
    const dispatch = useDispatch();

    return (
        <NotesViewDiv>
            <p>Notes View Layout</p>
            <Options isGridView={isGridView}>
                <FaThList id="list-view-opt" data-for="list-view" data-tip="" onClick={() => {console.log('fd');dispatch(setGridView(false))}} />
                <BsFillGrid3X3GapFill id="grid-view-opt" data-for="grid-view" data-tip="" onClick={() => dispatch(setGridView(true))} />
                <ReactTooltip id="list-view" getContent={() => "List View"} />
                <ReactTooltip id="grid-view" getContent={() => "Grid View"} />
            </Options>
        </NotesViewDiv>
    );
}