Refactor details-panel
[arvados-workbench2.git] / src / components / details-attribute / details-attribute.tsx
similarity index 86%
rename from src/components/attribute/attribute.tsx
rename to src/components/details-attribute/details-attribute.tsx
index e2da980e8cc3facd11366d73b81476196b1ea992..56da6c177cba95484171c55506b67411215021eb 100644 (file)
@@ -33,16 +33,16 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
     }
 });
 
-interface AttributeDataProps {
+interface DetailsAttributeDataProps {
     label: string;
     value?: string | number;
     link?: string;
     children?: React.ReactNode;
 }
 
-type AttributeProps = AttributeDataProps & WithStyles<CssRules>;
+type DetailsAttributeProps = DetailsAttributeDataProps & WithStyles<CssRules>;
 
-export const Attribute = withStyles(styles)(({ label, link, value, children, classes }: AttributeProps) =>
+export const DetailsAttribute = withStyles(styles)(({ label, link, value, children, classes }: DetailsAttributeProps) =>
     <Typography component="div" className={classes.attribute}>
         <Typography component="span" className={classes.label}>{label}</Typography>
         { link