feat: prettier config

This commit is contained in:
Anoop M D
2022-10-20 15:09:30 +05:30
parent 93544f8ae6
commit ba219d66db
160 changed files with 3029 additions and 2830 deletions

View File

@@ -24,13 +24,13 @@ const Wrapper = styled.div`
.label-item {
display: flex;
align-items: center;
padding: .35rem .6rem;
padding: 0.35rem 0.6rem;
}
.dropdown-item {
display: flex;
align-items: center;
padding: .35rem .6rem;
padding: 0.35rem 0.6rem;
cursor: pointer;
&:hover {

View File

@@ -2,19 +2,10 @@ import React from 'react';
import Tippy from '@tippyjs/react';
import StyledWrapper from './StyledWrapper';
const Dropdown = ({icon, children, onCreate, placement}) => {
const Dropdown = ({ icon, children, onCreate, placement }) => {
return (
<StyledWrapper className="dropdown">
<Tippy
content={children}
placement={placement || "bottom-end"}
animation={false}
arrow={false}
onCreate={onCreate}
interactive={true}
trigger="click"
appendTo="parent"
>
<Tippy content={children} placement={placement || 'bottom-end'} animation={false} arrow={false} onCreate={onCreate} interactive={true} trigger="click" appendTo="parent">
{icon}
</Tippy>
</StyledWrapper>