createdBy.tsx
TLDR
This file exports a functional component called CreatedBy that renders a Person component to display the creator of a card.
Classes
No classes are defined in this file.
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react'
import Person from '../person/person'
import {PropertyProps} from '../types'
const CreatedBy = (props: PropertyProps): JSX.Element => {
return (
<Person
{...props}
propertyValue={props.card.createdBy}
readOnly={true} // created by is an immutable property, so will always be readonly
/>
)
}
export default CreatedBy