mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-19 18:32:39 +00:00
hide usernames with emails
This commit is contained in:
@@ -435,22 +435,27 @@ const VaultPage = (props) => {
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="foundBrews">
|
||||
<span className="totalBrews">
|
||||
{`Brews found: `}
|
||||
<span>{totalBrews}</span>
|
||||
</span>
|
||||
{brewCollection.map((brew, index) => (
|
||||
<BrewItem
|
||||
brew={brew}
|
||||
key={index}
|
||||
reportError={props.reportError}
|
||||
/>
|
||||
))}
|
||||
{renderPaginationControls()}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
<div className="foundBrews">
|
||||
<span className="totalBrews">
|
||||
{`Brews found: `}
|
||||
<span>{totalBrews}</span>
|
||||
</span>
|
||||
{brewCollection.map((brew, index) => {
|
||||
const processedAuthors = brew.authors.map(author =>
|
||||
author.includes('@') ? 'hidden' : author
|
||||
);
|
||||
return (
|
||||
<BrewItem
|
||||
brew={{ ...brew, authors: processedAuthors }}
|
||||
key={index}
|
||||
reportError={props.reportError}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
{renderPaginationControls()}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="vaultPage">
|
||||
|
||||
Reference in New Issue
Block a user