Skip to content

Commit

Permalink
Merge pull request #10316 from nanaya/remove-comments-init
Browse files Browse the repository at this point in the history
Remove unused generic comments initialiser
  • Loading branch information
notbakaneko authored Jul 4, 2023
2 parents 5946af3 + 6749d69 commit 314b4f4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions resources/js/register-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import BeatmapsetPanel, { Props as BeatmapsetPanelProps } from 'beatmapset-panel
import BeatmapsetEvents, { Props as BeatmapsetEventsProps } from 'components/beatmapset-events';
import BlockButton from 'components/block-button';
import ChatIcon from 'components/chat-icon';
import Comments from 'components/comments';
import { CommentsManager, Props as CommentsManagerProps } from 'components/comments-manager';
import CountdownTimer from 'components/countdown-timer';
import { LandingNews } from 'components/landing-news';
import MainNotificationIcon from 'components/main-notification-icon';
Expand Down Expand Up @@ -80,15 +78,6 @@ core.reactTurbolinks.register('spotlight-select-options', () => (
<SpotlightSelectOptions {...parseJson('json-spotlight-select-options')} />
));

core.reactTurbolinks.register('comments', (container) => {
const props = {
...reqJson<Omit<CommentsManagerProps, 'component'>>(container.dataset.props),
component: Comments,
};

return <CommentsManager {...props} />;
});

core.reactTurbolinks.register('chat-icon', (container) => (
<ChatIcon type={container.dataset.type} />
));
Expand Down

0 comments on commit 314b4f4

Please sign in to comment.