Skip to content

Commit

Permalink
feat: switch onekey logo file to tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Akaryatrh committed Jan 13, 2025
1 parent 70c0d6f commit fa990f1
Showing 1 changed file with 8 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import React from 'react';
import PropTypes from 'prop-types';

Check failure on line 2 in ui/components/ui/logo/logo-onekey.tsx

View workflow job for this annotation

GitHub Actions / Test lint / Test lint

'PropTypes' is defined but never used

type LogoOneKeyType = {
width: string;
color: string;
className: string;
ariaLabel: string;
};

const LogoOnekey = ({
width = '100%',
color = 'var(--color-text-default)',
className,
ariaLabel,
}) => {
}: LogoOneKeyType) => {
return (
<svg
width={width}
Expand All @@ -31,23 +38,4 @@ const LogoOnekey = ({
);
};

LogoOnekey.propTypes = {
/**
* The width of the logo. Defaults to 100%
*/
width: PropTypes.string,
/**
* The color of the logo defaults to var(--color-text-default)
*/
color: PropTypes.string,
/**
* Additional className to add to the root svg
*/
className: PropTypes.string,
/**
* Aria label to add to the logo component
*/
ariaLabel: PropTypes.string,
};

export default LogoOnekey;

0 comments on commit fa990f1

Please sign in to comment.