mirror of
https://github.com/techno-tim/littlelink-server.git
synced 2024-11-21 05:15:22 +01:00
chore(deps-dev): bump markdownlint-cli from 0.41.0 to 0.42.0 (#687)
Bumps [markdownlint-cli](https://github.com/igorshubovych/markdownlint-cli) from 0.41.0 to 0.42.0. - [Release notes](https://github.com/igorshubovych/markdownlint-cli/releases) - [Commits](https://github.com/igorshubovych/markdownlint-cli/compare/v0.41.0...v0.42.0) --- updated-dependencies: - dependency-name: markdownlint-cli dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Techno Tim <timothystewart6@gmail.com>
This commit is contained in:
parent
d9f64136c5
commit
eea285ec40
@ -17,10 +17,10 @@
|
||||
"lint:markdown": "markdownlint .github/*.md && markdownlint README.md"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fortawesome/free-brands-svg-icons": "^6.6.0",
|
||||
"@fortawesome/fontawesome-svg-core": "^6.6.0",
|
||||
"@fortawesome/free-solid-svg-icons": "^6.6.0",
|
||||
"@fortawesome/free-brands-svg-icons": "^6.6.0",
|
||||
"@fortawesome/free-regular-svg-icons": "^6.6.0",
|
||||
"@fortawesome/free-solid-svg-icons": "^6.6.0",
|
||||
"@fortawesome/react-fontawesome": "^0.2.2",
|
||||
"compression": "^1.7.4",
|
||||
"express": "^4.20.0",
|
||||
@ -34,8 +34,8 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.25.2",
|
||||
"@babel/preset-react": "^7.24.7",
|
||||
"@babel/eslint-parser": "^7.25.9",
|
||||
"@babel/preset-react": "^7.24.7",
|
||||
"babel-preset-razzle": "^4.2.18",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
@ -46,7 +46,7 @@
|
||||
"eslint-plugin-promise": "^6.6.0",
|
||||
"eslint-plugin-react": "^7.35.2",
|
||||
"html-webpack-plugin": "^5.6.3",
|
||||
"markdownlint-cli": "^0.41.0",
|
||||
"markdownlint-cli": "^0.42.0",
|
||||
"mini-css-extract-plugin": "^2.9.1",
|
||||
"prettier": "^3.3.3",
|
||||
"razzle": "^4.2.18",
|
||||
|
@ -5,10 +5,15 @@ import { runtimeConfig } from '../../config';
|
||||
|
||||
import './Avatar.css';
|
||||
|
||||
// Avatar component that renders an image with shadow.
|
||||
function Avatar(props) {
|
||||
// Props of the component.
|
||||
const { src, srcSet, alt } = props;
|
||||
|
||||
// Get avatar size from runtime config.
|
||||
const avatarSize = runtimeConfig.AVATAR_SIZE || null;
|
||||
|
||||
// Render the image with shadow.
|
||||
return (
|
||||
<img
|
||||
className={'avatar' + addShadow()}
|
||||
@ -20,6 +25,7 @@ function Avatar(props) {
|
||||
);
|
||||
}
|
||||
|
||||
// Memoize the component to improve performance.
|
||||
export default memo(Avatar);
|
||||
|
||||
Avatar.propType = {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React, { memo } from 'react';
|
||||
import { string, number, object } from 'prop-types';
|
||||
import { string, object } from 'prop-types';
|
||||
import { trackGoogleEvent } from '../../analytics/google';
|
||||
import { runtimeConfig } from '../../config';
|
||||
import { trackUmamiEvent } from '../../analytics/umami';
|
||||
@ -55,7 +55,6 @@ Button.propType = {
|
||||
displayName: string.isRequired,
|
||||
href: string.isRequired,
|
||||
name: string.isRequired,
|
||||
order: number.isRequired,
|
||||
logo: string,
|
||||
icon: string,
|
||||
styles: object,
|
||||
|
Loading…
Reference in New Issue
Block a user