Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Migrate FilePanel to TypeScript #6283

Merged
merged 3 commits into from
Jun 29, 2021
Merged

Conversation

germain-gg
Copy link
Contributor

@germain-gg germain-gg commented Jun 29, 2021

Migrated as part of my investigation for element-hq/element-web#17753

Requires #6283

@germain-gg germain-gg requested a review from a team June 29, 2021 10:41
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM otherwise

src/components/structures/FilePanel.tsx Outdated Show resolved Hide resolved
src/components/structures/FilePanel.tsx Outdated Show resolved Hide resolved
src/components/structures/FilePanel.tsx Outdated Show resolved Hide resolved
src/components/structures/FilePanel.tsx Show resolved Hide resolved
src/components/structures/FilePanel.tsx Outdated Show resolved Hide resolved
src/components/structures/FilePanel.tsx Outdated Show resolved Hide resolved
src/components/structures/FilePanel.tsx Outdated Show resolved Hide resolved
src/components/structures/FilePanel.tsx Outdated Show resolved Hide resolved
import { EventTimelineSet } from "matrix-js-sdk/src/models/event-timeline-set";
import { MatrixEvent, Room } from 'matrix-js-sdk/src';
import { TimelineWindow } from 'matrix-js-sdk/src/timeline-window';

import * as sdk from '../../index';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be good to kill this off during this conversion imo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I'm aware it's still needed for tests sometimes?
Under what circumstances is it acceptable to remove?

Copy link
Member

@t3chguy t3chguy Jun 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well this'll be for the getComponent calls below, my point was we can probably eradicate them by switching to type-safe imports

src/components/structures/FilePanel.tsx Outdated Show resolved Hide resolved
@germain-gg germain-gg merged commit 78f1748 into develop Jun 29, 2021
@germain-gg germain-gg deleted the gsouquet/filepanel-typescript branch June 29, 2021 14:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants