Skip to content

Commit

Permalink
💄 ui: update WindowList component to navigate gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
Bear29ers committed Jun 30, 2024
1 parent 7ce4916 commit 1b5601b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/common/menus/MenuList/MenuList.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('src/components/common/menus/MenuList/MenuList.test.tsx', () => {
});

it('should have pointer-events-none and line-through class with the Gallery menu item', () => {
expect(screen.getByRole('link', { name: 'Gallery' })).toHaveClass('pointer-events-none line-through');
expect(screen.getByRole('link', { name: 'Gallery' })).not.toHaveClass('pointer-events-none line-through');
});

it('should render the GithubIcon component', () => {
Expand Down
1 change: 1 addition & 0 deletions src/components/common/menus/MenuList/MenuList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import getIconComponent from '@/utils/getIconComponent';
import type { MenuItem } from '@/types/menuItems';
import type { SocialMedia } from '@/types/socialMedia';

// TODO: すべてリンクが有効になったらvariatnsを修正する(whileHoverやwhileTapもvariantsに含める)
const activeMenuVariants = {
initial: {
opacity: 0,
Expand Down
10 changes: 5 additions & 5 deletions src/constants/menuItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ export const MENU_ITEMS: MenuItem[] = [
},
{
id: 4,
href: '/works',
text: 'Works',
isAvaliable: false,
href: '/gallery',
text: 'Gallery',
isAvaliable: true,
},
{
id: 5,
href: '/gallery',
text: 'Gallery',
href: '/works',
text: 'Works',
isAvaliable: false,
},
];

0 comments on commit 1b5601b

Please sign in to comment.