Apply prettier formatting
This commit is contained in:
parent
1cac306093
commit
526645c791
1576 changed files with 65385 additions and 62478 deletions
|
@ -14,17 +14,17 @@ See the License for the specific language governing permissions and
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import React from "react";
|
||||
|
||||
import SettingsStore from '../../../settings/SettingsStore';
|
||||
import { UIFeature } from '../../../settings/UIFeature';
|
||||
import SettingsStore from "../../../settings/SettingsStore";
|
||||
import { UIFeature } from "../../../settings/UIFeature";
|
||||
|
||||
interface IProps {
|
||||
uiFeature: UIFeature;
|
||||
}
|
||||
const UiFeatureSettingWrapper: React.FC<IProps> = ({ children, uiFeature }) => {
|
||||
const settingValue = SettingsStore.getValue(uiFeature);
|
||||
return settingValue && children ? <>{ children }</> : null;
|
||||
return settingValue && children ? <>{children}</> : null;
|
||||
};
|
||||
|
||||
export default UiFeatureSettingWrapper;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue