How to use the react-feather/dist/icons/trash-2.default function in react-feather

To help you get started, we’ve selected a few react-feather examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github appbaseio / dashboard / src / pages / CredentialsPage / Permission.js View on Github external
import React from 'react';
import { Button, Popconfirm, Tooltip, notification } from 'antd';
import { css } from 'react-emotion';
import { object, func } from 'prop-types';
import { CopyToClipboard } from 'react-copy-to-clipboard';
import Flex from '../../batteries/components/shared/Flex';

const EyeIcon = require('react-feather/dist/icons/eye').default;
const EyeOffIcon = require('react-feather/dist/icons/eye-off').default;
const CopyIcon = require('react-feather/dist/icons/copy').default;
const EditIcon = require('react-feather/dist/icons/edit').default;
const DeleteIcon = require('react-feather/dist/icons/trash-2').default;

const main = css`
	.ant-btn {
		border: transparent;
		margin-left: 5px;
		padding: 0 5px;
	}
`;
const container = css`
	border: 1px solid #e8e8e8;
	padding: 2px 10px;
	.ant-btn {
		border: transparent;
		background-color: transparent;
		margin-left: 5px;
		padding: 0 5px;
github appbaseio / dashboard / src / pages / ShareSettingsPage / index.js View on Github external
import {
	getSharedApp,
	createAppShare,
	updatePermission,
	deleteAppShare,
} from '../../batteries/modules/actions';
import UpgradePlanBanner from '../../batteries/components/shared/UpgradePlan/Banner';
import CredentialsForm from '../../components/CreateCredentials';
import TransferOwnership from './TransferOwnership';
import {
	getAppPlanByName,
	getAppInfoByName,
} from '../../batteries/modules/selectors';
import { displayErrors } from '../../utils/helper';

const DeleteIcon = require('react-feather/dist/icons/trash-2').default;

const bannerMessagesTeam = {
	free: {
		title: 'Sharing Settings',
		description:
			'Invite team members and collaborate together on your app.',
		buttonText: 'Upgrade Now',
		href: 'billing',
	},
	bootstrap: {
		title: 'Sharing Settings',
		description:
			'Invite team members and collaborate together on your app.',
		showButton: false,
	},
	growth: {