chore: fixing deprecation warnings for all the things that are in the monorepo
Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
@@ -48,8 +48,11 @@ export class RouteRefImpl<Params extends AnyParams>
|
||||
private readonly id: string,
|
||||
readonly params: ParamKeys<Params>,
|
||||
private readonly config: {
|
||||
/** @deprecated */
|
||||
path?: string;
|
||||
/** @deprecated */
|
||||
icon?: OldIconComponent;
|
||||
/** @deprecated */
|
||||
title?: string;
|
||||
},
|
||||
) {
|
||||
@@ -79,11 +82,6 @@ export class RouteRefImpl<Params extends AnyParams>
|
||||
return this.config.icon;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
get path() {
|
||||
return this.config.path ?? '';
|
||||
}
|
||||
|
||||
get title() {
|
||||
return this.config.title ?? this.id;
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ export type RouteRef<Params extends AnyParams = any> = {
|
||||
|
||||
// TODO(Rugvip): Remove all of these once plugins don't rely on the path
|
||||
/** @deprecated paths are no longer accessed directly from RouteRefs, use useRouteRef instead */
|
||||
path: string;
|
||||
// path: string;
|
||||
/** @deprecated icons are no longer accessed via RouteRefs */
|
||||
icon?: OldIconComponent;
|
||||
/** @deprecated titles are no longer accessed via RouteRefs */
|
||||
|
||||
Reference in New Issue
Block a user