Skip to content

Commit

Permalink
a-chabin review
Browse files Browse the repository at this point in the history
  • Loading branch information
hiba9201 committed Sep 3, 2023
1 parent 1fc8bd7 commit 6d25567
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@ export function MapStopsSidebarStopsListItem({ vehicle }: MapStopsSidebarStopsLi
[styles.MapStopsSidebarVehicle_isSelected]: currentVehicleRoute === vehicle.route,
})}
onClick={setSelectedVehicle}
style={{
// @ts-ignore
'--vehicle-color': VEHICLE_TYPE_COLORS[vehicle.type],
}}
style={
{
'--vehicle-color': VEHICLE_TYPE_COLORS[vehicle.type],
} as React.CSSProperties
}
>
<div className={cn(styles.MapStopsSidebarVehicleInfo)}>
<div className={cn(styles.MapStopsSidebarVehicleRoute)}>{vehicle.route}</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function MapStopsSidebarStopsList() {
))}
{stopInfo.length === 0 && (
<Typography variant="h4">
{t('О нет! В ближайшее время транспорта тут не будет')}
{t(, нет! В ближайшее время транспорта тут не будет')}
</Typography>
)}
</MapStopsSidebarRow>
Expand Down
9 changes: 5 additions & 4 deletions client/components/Map/Vehicles/Sidebar/MapVehiclesSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,11 @@ export function MapVehiclesSidebar({
return (
<div
className={cn(styles.MapVehiclesSidebar)}
style={{
// @ts-ignore
'--vehicle-color': VEHICLE_TYPE_COLORS[type],
}}
style={
{
'--vehicle-color': VEHICLE_TYPE_COLORS[type],
} as React.CSSProperties
}
>
<div className={cn(styles.MapVehiclesSidebarWrapper)}>
{unitInfo?.image.data && (
Expand Down
4 changes: 2 additions & 2 deletions common/types/strapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ export enum StrapiContentTypes {
UnitInfo = 'unit-info',
}

export interface StrapiBase<A> {
export interface StrapiBase<AttributesType> {
id: number;
attributes: A;
attributes: AttributesType;
}

export type StrapiStop = StrapiBase<Stop>;
Expand Down

1 comment on commit 6d25567

@ekbdev
Copy link

@ekbdev ekbdev commented on 6d25567 Sep 3, 2023

Choose a reason for hiding this comment

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

Deploy preview for transport ready!

✅ Preview
https://transport-marjruhaq-ekbdev.vercel.app
https://ekbdev-transport-feat-clickable-transport.vercel.app

Built with commit 6d25567.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.