Skip to content

Commit

Permalink
Simplify precommit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
taysea committed Jun 21, 2023
1 parent cf47d9f commit 61989d4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 25 deletions.
2 changes: 0 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ echo "..Running aries-site checks"
cd aries-site
echo "....Linting checks for aries-site"
npm run lint-fix
echo "....Running test suite for aries-site"
npm run test:local
cd ${__rootDir}
echo "..Running aries-core checks"
cd aries-core
Expand Down
43 changes: 20 additions & 23 deletions aries-core/src/js/components/helpers/Anchors/AnchorGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,26 @@ import { NavLink } from './NavLink';
export const AnchorGroup = ({ items }) => {
const size = useContext(ResponsiveContext);

return (
<>
{items &&
items.map((item, index) => (
<NavLink
tabIndex={0}
key={index}
icon={item.icon}
// label={item.label}
// On desktop, allow final nav item to be completely right justified
margin={
index === items.length - 1 && !['xsmall', 'small'].includes(size)
? {
vertical: 'small',
left: 'small',
}
: 'small'
}
{...item}
/>
))}
</>
);
return items
? items.map((item, index) => (
<NavLink
tabIndex={0}
key={index}
icon={item.icon}
// label={item.label}
// On desktop, allow final nav item to be completely right justified
margin={
index === items.length - 1 && !['xsmall', 'small'].includes(size)
? {
vertical: 'small',
left: 'small',
}
: 'small'
}
{...item}
/>
))
: null;
};

AnchorGroup.propTypes = {
Expand Down

0 comments on commit 61989d4

Please sign in to comment.