generated from JohnBra/vite-web-extension
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
106 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/pages/popup/components/home/detail/buttons/PermanentlyDeleteButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from 'react'; | ||
import { WarningIcon } from '@pages/popup/components/home/icons/icons'; | ||
|
||
interface PermanentlyDeleteButtonProps { | ||
onClick: () => void; | ||
} | ||
|
||
const PermanentlyDeleteButton: React.FC<PermanentlyDeleteButtonProps> = ({ | ||
onClick | ||
}) => { | ||
return ( | ||
<div className="inline-flex items-center justify-center mt-2"> | ||
<button | ||
onClick={onClick} | ||
className="text-white text-sm px-3 py-1 rounded hover:bg-red-500 bg-red-600/[0.75] focus:outline-none focus:ring-4 focus:ring-blue-3 inline-flex items-center" | ||
> | ||
<WarningIcon iconClasses="w-4 h-4 mr-2 stroke-white stroke-2" /> | ||
Permanently Delete | ||
</button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PermanentlyDeleteButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters