Skip to content

Commit

Permalink
some comments & todos
Browse files Browse the repository at this point in the history
  • Loading branch information
krutoo committed Jan 27, 2025
1 parent b374d3d commit b9eef28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/build/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function StoriesArrayItemTemplate(entry: StoryModuleData) {
function defaultRawImport(moduleData: { importPath: string }): { importPath: string } {
return {
// по умолчанию такой потому что такой поддерживается в Vite, Webpack, Rspack
// но в Rspack почему- то не работает без начального "!
// но в Rspack почему-то не работает без начального "!"
// поэтому даем возможность переопределить
importPath: `${moduleData.importPath}?raw`,
};
Expand Down
10 changes: 5 additions & 5 deletions src/runtime-showcase/components/App/App.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
import { useContext } from 'react';
import { MenuItem } from '../Menu';
import { StoryViewer } from '../StoryViewer';
import { useMatchMedia } from '@krutoo/utils/react';
import { useLocation, useNavigate } from '../../shared/router';
import { StoryViewer } from '../StoryViewer';
import { MenuModal } from '../MenuModal';
import { Layout, Header, Main, Aside } from '../Layout';
import { Logo } from '../Logo';
import { HeaderLinks } from '../HeaderLinks';
import { StoryPlaceholder } from '../StoryPlaceholder';
import { Menu } from '../Menu/Menu';
import {
ShowcaseContext,
useCurrentStory,
useMainMenu,
useMenuItems,
} from '../../context/showcase';
import styles from './App.m.css';
import { StoryPlaceholder } from '../StoryPlaceholder';
import { Menu } from '../Menu/Menu';

export function App() {
const navigate = useNavigate();
Expand Down Expand Up @@ -48,7 +47,8 @@ export function App() {
return undefined;
}

return defineStoryUrl(data.story);
// @todo use some util from router module
return `?path=${data.story.pathname}`;
}}
isActive={data => {
if (data.type !== 'story') {
Expand Down

0 comments on commit b9eef28

Please sign in to comment.