0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-20 21:32:31 -05:00

refactor(console): remove unused element

remove unused element
This commit is contained in:
simeng-li 2024-03-29 10:49:55 +08:00 committed by Darcy Ye
parent 777ef0e483
commit 59ffb43cf9
No known key found for this signature in database
GPG key ID: B46F4C07EDEFC610

View file

@ -1,24 +0,0 @@
import { useTranslation } from 'react-i18next';
import ClearIcon from '@/assets/icons/clear.svg';
import ActionButton from './index';
type Props = {
onClick: () => void;
};
function CodeClearButton({ onClick }: Props) {
const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' });
return (
<ActionButton
actionTip={t('jwt_claims.clear')}
actionSuccessTip={t('jwt_claims.cleared')}
icon={<ClearIcon />}
onClick={onClick}
/>
);
}
export default CodeClearButton;