Refactor <Column>
to TypeScript (#33081)
This commit is contained in:
parent
752d49eefe
commit
346a27b6fc
11 changed files with 67 additions and 84 deletions
|
@ -36,7 +36,8 @@ import { useAppDispatch, useAppSelector } from 'mastodon/store';
|
|||
|
||||
import { addColumn, removeColumn, moveColumn } from '../../actions/columns';
|
||||
import { submitMarkers } from '../../actions/markers';
|
||||
import Column from '../../components/column';
|
||||
import { Column } from '../../components/column';
|
||||
import type { ColumnRef } from '../../components/column';
|
||||
import { ColumnHeader } from '../../components/column_header';
|
||||
import { LoadGap } from '../../components/load_gap';
|
||||
import ScrollableList from '../../components/scrollable_list';
|
||||
|
@ -96,7 +97,7 @@ export const Notifications: React.FC<{
|
|||
selectNeedsNotificationPermission,
|
||||
);
|
||||
|
||||
const columnRef = useRef<Column>(null);
|
||||
const columnRef = useRef<ColumnRef>(null);
|
||||
|
||||
const selectChild = useCallback((index: number, alignTop: boolean) => {
|
||||
const container = columnRef.current?.node as HTMLElement | undefined;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue