diff options
author | Marcin Aman <marcin.aman@gmail.com> | 2020-10-05 10:24:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-05 10:24:06 +0200 |
commit | 49d4757acd8e6ef974baccbb228a76ceb74b59b0 (patch) | |
tree | 09ff129568a53a833476763da1c93910e470fc15 /plugins/base/frontend/src | |
parent | 249556460973007de3d436ddda1df7d100aefab0 (diff) | |
download | dokka-49d4757acd8e6ef974baccbb228a76ceb74b59b0.tar.gz dokka-49d4757acd8e6ef974baccbb228a76ceb74b59b0.tar.bz2 dokka-49d4757acd8e6ef974baccbb228a76ceb74b59b0.zip |
Render react resources as separate css to allow overriding (#1416)
* Render react resources as separate css to allow overriding
* Improve build.gradle.kts
Diffstat (limited to 'plugins/base/frontend/src')
-rw-r--r-- | plugins/base/frontend/src/main/components/search/search.tsx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/base/frontend/src/main/components/search/search.tsx b/plugins/base/frontend/src/main/components/search/search.tsx index ce1ac8b4..ba7f6093 100644 --- a/plugins/base/frontend/src/main/components/search/search.tsx +++ b/plugins/base/frontend/src/main/components/search/search.tsx @@ -1,12 +1,12 @@ -import React, {useCallback, useState} from 'react'; -import {Select, List} from '@jetbrains/ring-ui'; +import React, { useCallback, useState } from 'react'; +import { Select, List } from '@jetbrains/ring-ui'; import '@jetbrains/ring-ui/components/input-size/input-size.scss'; import './search.scss'; -import {IWindow, Option, Props} from "./types"; -import {DokkaSearchAnchor} from "./dokkaSearchAnchor"; -import {DokkaFuzzyFilterComponent} from "./dokkaFuzzyFilter"; +import { IWindow, Option, Props } from "./types"; +import { DokkaSearchAnchor } from "./dokkaSearchAnchor"; +import { DokkaFuzzyFilterComponent } from "./dokkaFuzzyFilter"; -const WithFuzzySearchFilterComponent: React.FC<Props> = ({data}: Props) => { +const WithFuzzySearchFilterComponent: React.FC<Props> = ({ data }: Props) => { const [selected, onSelected] = useState<Option>(data[0]); const onChangeSelected = useCallback( (option: Option) => { @@ -32,12 +32,12 @@ const WithFuzzySearchFilterComponent: React.FC<Props> = ({data}: Props) => { data={data} popupClassName={"popup-wrapper"} onSelect={onChangeSelected} - customAnchor={({wrapperProps, buttonProps, popup}) => - <DokkaSearchAnchor wrapperProps={wrapperProps} buttonProps={buttonProps} popup={popup}/> + customAnchor={({ wrapperProps, buttonProps, popup }) => + <DokkaSearchAnchor wrapperProps={wrapperProps} buttonProps={buttonProps} popup={popup} /> } /> + </div> </div> - </div> ) } @@ -54,5 +54,5 @@ export const WithFuzzySearchFilter = () => { })); } - return <WithFuzzySearchFilterComponent data={data}/>; + return <WithFuzzySearchFilterComponent data={data} />; }; |