Skip to content

Commit

Permalink
Merge pull request #44 from c4dt/add_voters_icon
Browse files Browse the repository at this point in the history
Change AddVoters icon to nicer document icon
  • Loading branch information
PascalinDe authored Oct 10, 2023
2 parents 3117283 + 9533280 commit 04a5f18
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TrashIcon } from '@heroicons/react/outline';
import { DocumentAddIcon } from '@heroicons/react/outline';
import { AuthContext } from 'index';
import { useContext } from 'react';
import { useTranslation } from 'react-i18next';
Expand All @@ -14,7 +14,7 @@ const AddVotersButton = ({ handleAddVoters }) => {
authCtx.isAllowed(SUBJECT_ELECTION, ACTION_CREATE) && (
<button onClick={handleAddVoters}>
<div className="whitespace-nowrap inline-flex items-center justify-center px-4 py-1 mr-2 border border-gray-300 text-sm rounded-full font-medium text-gray-700 hover:text-red-500">
<TrashIcon className="-ml-1 mr-2 h-5 w-5" aria-hidden="true" />
<DocumentAddIcon className="-ml-1 mr-2 h-5 w-5" aria-hidden="true" />
{t('addVoters')}
</div>
</button>
Expand Down

0 comments on commit 04a5f18

Please sign in to comment.