mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-31 10:22:36 +01:00
Eslint fixes
This commit is contained in:
parent
a39db6cf91
commit
d0d2c51472
@ -8,8 +8,8 @@ export function HotelView(props: HotelViewProps): JSX.Element
|
|||||||
const sun = Nitro.instance.core.configuration.interpolate(Nitro.instance.getConfiguration('hotelview.images')['sun']);
|
const sun = Nitro.instance.core.configuration.interpolate(Nitro.instance.getConfiguration('hotelview.images')['sun']);
|
||||||
const drape = Nitro.instance.core.configuration.interpolate(Nitro.instance.getConfiguration('hotelview.images')['drape']);
|
const drape = Nitro.instance.core.configuration.interpolate(Nitro.instance.getConfiguration('hotelview.images')['drape']);
|
||||||
const left = Nitro.instance.core.configuration.interpolate(Nitro.instance.getConfiguration('hotelview.images')['left']);
|
const left = Nitro.instance.core.configuration.interpolate(Nitro.instance.getConfiguration('hotelview.images')['left']);
|
||||||
const rightRepeat = Nitro.instance.core.configuration.interpolate(Nitro.instance.getConfiguration('hotelview.images')['right.repeat']);
|
//const rightRepeat = Nitro.instance.core.configuration.interpolate(Nitro.instance.getConfiguration('hotelview.images')['right.repeat']);
|
||||||
const right = Nitro.instance.core.configuration.interpolate(Nitro.instance.getConfiguration('hotelview.images')['right']);
|
//const right = Nitro.instance.core.configuration.interpolate(Nitro.instance.getConfiguration('hotelview.images')['right']);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="nitro-hotel-view" style={ (backgroundColor && backgroundColor) ? { background: backgroundColor } : {} }>
|
<div className="nitro-hotel-view" style={ (backgroundColor && backgroundColor) ? { background: backgroundColor } : {} }>
|
||||||
|
@ -11,7 +11,7 @@ export function NavigatorMessageHandler(props: NavigatorMessageHandlerProps): JS
|
|||||||
|
|
||||||
const onUserInfoEvent = useCallback((event: UserInfoEvent) =>
|
const onUserInfoEvent = useCallback((event: UserInfoEvent) =>
|
||||||
{
|
{
|
||||||
const parser = event.getParser();
|
//const parser = event.getParser();
|
||||||
|
|
||||||
SendMessageHook(new NavigatorCategoriesComposer());
|
SendMessageHook(new NavigatorCategoriesComposer());
|
||||||
SendMessageHook(new NavigatorSettingsComposer());
|
SendMessageHook(new NavigatorSettingsComposer());
|
||||||
|
@ -9,7 +9,7 @@ export function NavigatorResultListsView(props: NavigatorResultListsViewProps):
|
|||||||
<div className="nitro-navigator-result-lists w-100">
|
<div className="nitro-navigator-result-lists w-100">
|
||||||
{ resultLists && resultLists.length && resultLists.map((resultList, index) =>
|
{ resultLists && resultLists.length && resultLists.map((resultList, index) =>
|
||||||
{
|
{
|
||||||
return <NavigatorResultListView key={ index } resultList={ resultList } isLast={ index + 1 === resultLists.length } />
|
return <NavigatorResultListView key={ index } resultList={ resultList } />
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
@ -6,7 +6,7 @@ import { NavigatorResultView } from './result/NavigatorResultView';
|
|||||||
|
|
||||||
export function NavigatorResultListView(props: NavigatorResultListViewProps): JSX.Element
|
export function NavigatorResultListView(props: NavigatorResultListViewProps): JSX.Element
|
||||||
{
|
{
|
||||||
const { resultList = null, isLast = false } = props;
|
const { resultList = null } = props;
|
||||||
|
|
||||||
const [ isExtended, setIsExtended ] = useState(true);
|
const [ isExtended, setIsExtended ] = useState(true);
|
||||||
const [ displayMode, setDisplayMode ] = useState<number>(0);
|
const [ displayMode, setDisplayMode ] = useState<number>(0);
|
||||||
|
@ -3,7 +3,6 @@ import { NavigatorSearchResultList } from 'nitro-renderer';
|
|||||||
export interface NavigatorResultListViewProps
|
export interface NavigatorResultListViewProps
|
||||||
{
|
{
|
||||||
resultList: NavigatorSearchResultList;
|
resultList: NavigatorSearchResultList;
|
||||||
isLast: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class NavigatorResultListViewDisplayMode
|
export class NavigatorResultListViewDisplayMode
|
||||||
|
Loading…
x
Reference in New Issue
Block a user