📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
added icon to the delete project button
Blue Mouse035a1887da91
diff --git a/src/pages/Project/Settings/ProjectSettings.jsx b/src/pages/Project/Settings/ProjectSettings.jsxindex 40a49560b..3470c778e 100644--- a/src/pages/Project/Settings/ProjectSettings.jsx+++ b/src/pages/Project/Settings/ProjectSettings.jsx@@ -16,6 +16,7 @@ import _keys from 'lodash/keys'import _map from 'lodash/map'import _includes from 'lodash/includes'import PropTypes from 'prop-types'+import { ExclamationIcon } from '@heroicons/react/outline'import Title from 'components/Title'import { withAuthentication, auth } from 'hoc/protected'@@ -280,7 +281,8 @@ const ProjectSettings = ({</Button></div>{!project.shared && (- <Button onClick={() => !projectDeleting && setShowDelete(true)} loading={projectDeleting} danger large>+ <Button onClick={() => !projectDeleting && setShowDelete(true)} loading={projectDeleting} danger semiSmall>+ <ExclamationIcon className='w-5 h-5 mr-1' />{t('project.settings.delete')}</Button>)}diff --git a/src/pages/Project/View/ViewProject.jsx b/src/pages/Project/View/ViewProject.jsxindex daba86b0b..3c08e06b1 100644--- a/src/pages/Project/View/ViewProject.jsx+++ b/src/pages/Project/View/ViewProject.jsx@@ -684,7 +684,7 @@ const ViewProject = ({className='flex justify-center items-center py-2 px-3 md:px-4 ml-3 text-sm dark:text-gray-50 dark:border-gray-800 dark:bg-gray-700 dark:hover:bg-gray-600'secondary>- <CogIcon className='w-5 h-5 mr-1' />+ <CogIcon className='w-5 h-5 mr-2' />{t('common.settings')}</Button>)}diff --git a/src/ui/Button.jsx b/src/ui/Button.jsxindex c8a246c3f..b4d067833 100644--- a/src/ui/Button.jsx+++ b/src/ui/Button.jsx@@ -6,7 +6,7 @@ import PropTypes from 'prop-types'import Spin from './icons/Spin'const Button = ({- text, children, primary, secondary, danger, onClick, white, small, regular, large, giant, type, className, loading,+ text, children, primary, secondary, danger, onClick, white, small, regular, large, giant, type, className, loading, semiSmall,}) => (<buttontype={type}@@ -17,6 +17,7 @@ const Button = ({'text-gray-700 bg-white hover:bg-gray-50 border-transparent': white,'text-white bg-red-500 hover:bg-red-600 border-transparent': danger,'px-2.5 py-1.5 text-xs': small,+ 'px-2.5 py-1.5 text-sm': semiSmall,'px-4 py-2 text-sm': large,'px-6 py-3 text-base': giant,'px-3 py-2 text-sm': regular,@@ -39,6 +40,7 @@ Button.propTypes = {white: PropTypes.bool,danger: PropTypes.bool,small: PropTypes.bool,+ semiSmall: PropTypes.bool,regular: PropTypes.bool,large: PropTypes.bool,giant: PropTypes.bool,@@ -54,6 +56,7 @@ Button.defaultProps = {secondary: false,white: false,small: false,+ semiSmall: false,regular: false,large: false,danger: false,