forked from mystiq/hydrogen-web
Format swtich case properly
This commit is contained in:
parent
fee6447e22
commit
b134fa7409
1 changed files with 12 additions and 6 deletions
|
@ -28,15 +28,21 @@ import type {TileView} from "./TimelineView";
|
|||
type TileViewConstructor = (this: TileView, SimpleTile) => void;
|
||||
export function viewClassForEntry(entry: SimpleTile): TileViewConstructor | undefined {
|
||||
switch (entry.shape) {
|
||||
case "gap": return GapView;
|
||||
case "announcement": return AnnouncementView;
|
||||
case "gap":
|
||||
return GapView;
|
||||
case "announcement":
|
||||
return AnnouncementView;
|
||||
case "message":
|
||||
case "message-status":
|
||||
return TextMessageView;
|
||||
case "image": return ImageView;
|
||||
case "video": return VideoView;
|
||||
case "file": return FileView;
|
||||
case "missing-attachment": return MissingAttachmentView;
|
||||
case "image":
|
||||
return ImageView;
|
||||
case "video":
|
||||
return VideoView;
|
||||
case "file":
|
||||
return FileView;
|
||||
case "missing-attachment":
|
||||
return MissingAttachmentView;
|
||||
case "redacted":
|
||||
return RedactedView;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue