Merge pull request #51 from dakshesh14/main

fix: lint error on project settings, borders in states tab
This commit is contained in:
Vihar Kurama 2022-12-20 12:15:50 +05:30 committed by GitHub
commit f0a5e91394
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -76,8 +76,8 @@ const StatesSettings: React.FC<Props> = ({ projectId }) => {
state.id !== selectedState ? (
<div
key={state.id}
className={`bg-gray-50 p-3 flex justify-between items-center gap-2 border-b ${
Boolean(activeGroup !== key) ? "last:border-0" : ""
className={`bg-gray-50 p-3 flex justify-between items-center gap-2 border-t ${
Boolean(activeGroup !== key) ? "first:border-0" : ""
}`}
>
<div className="flex items-center gap-2">
@ -99,7 +99,7 @@ const StatesSettings: React.FC<Props> = ({ projectId }) => {
</div>
</div>
) : (
<div className={`border-b last:border-b-0`} key={state.id}>
<div className={`border-t first:border-t-0`} key={state.id}>
<CreateUpdateStateInline
projectId={projectId as string}
onClose={() => {

View File

@ -176,7 +176,7 @@ const ProjectSettings: NextPage = () => {
<Tab.Group>
<Tab.List className="flex items-center gap-x-4 gap-y-2 flex-wrap mb-8">
{["General", "Control", "Members", "States", "Labels"].map((tab, index) => (
<Tab key={index}>
<Tab key={index} as="div">
{({ selected }) => (
<Button theme="secondary" className={selected ? "border-theme" : ""}>
{tab}