@@ -2,6 +2,7 @@ import React, { Component } from "react";
22import { withStyles , Theme , WithStyles } from "@material-ui/core/styles" ;
33import ExpansionPanel from "@material-ui/core/ExpansionPanel" ;
44import ExpansionPanelSummary from "@material-ui/core/ExpansionPanelSummary" ;
5+ import _ from "lodash" ;
56import ExpansionPanelDetails from "@material-ui/core/ExpansionPanelDetails" ;
67import Typography from "@material-ui/core/Typography" ;
78import ExpandMoreIcon from "@material-ui/icons/ExpandMore" ;
@@ -12,6 +13,8 @@ import ExamplePairings from "../ExamplePairings/ExamplePairings";
1213import Errors from "../Errors/Errors" ;
1314import { types } from "@open-rpc/meta-schema" ;
1415import Links from "../Links/Links" ;
16+ import { Chip } from "@material-ui/core" ;
17+ import Tags from "../Tags/Tags" ;
1518
1619const styles = ( theme : Theme ) => ( {
1720 heading : {
@@ -54,6 +57,12 @@ class Methods extends Component<IProps> {
5457 < Typography key = { method . name } className = { classes . heading } > { method . name } </ Typography >
5558 < Typography key = { method . summary } className = { classes . secondaryHeading } > { method . summary } </ Typography >
5659 </ ExpansionPanelSummary >
60+
61+ { method . tags && method . tags . length > 0 &&
62+ < ExpansionPanelDetails key = "tags" >
63+ < Tags tags = { method . tags as any } />
64+ </ ExpansionPanelDetails >
65+ }
5766 { method . description &&
5867 < ExpansionPanelDetails key = "description" >
5968 < ReactMarkdown source = { method . description } />
0 commit comments