mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-24 17:47:42 +00:00
Pull in frontend
This commit is contained in:
12
web/src/shared/components/avatar.js
Normal file
12
web/src/shared/components/avatar.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import React, { Component } from "react";
|
||||
import styles from "./avatar.less";
|
||||
|
||||
export default class Avatar extends Component {
|
||||
render() {
|
||||
const image = this.props.image;
|
||||
const style = {
|
||||
backgroundImage: `url(${image})`,
|
||||
};
|
||||
return <div className={styles.avatar} style={style} />;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user