Skip to content

Commit

Permalink
Rmoved bg-background, reverted eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
amjithtitus09 committed Feb 21, 2025
1 parent 4461967 commit 70a93a2
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 20 deletions.
4 changes: 2 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ export default [
rules: {
...tseslint.configs.recommended.rules,
"@typescript-eslint/no-unused-vars": [
"warn",
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
"@typescript-eslint/no-unused-expressions": [
"warn",
"error",
{ allowShortCircuit: true, allowTernary: true },
],
"@typescript-eslint/no-explicit-any": "warn",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Questionnaire/CloneQuestionnaireSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default function CloneQuestionnaireSheet({
</div>
</div>

<SheetFooter className="absolute bottom-0 left-0 right-0 p-4 border-t bg-background">
<SheetFooter className="absolute bottom-0 left-0 right-0 p-4 border-t">
<div className="flex w-full justify-end gap-4">
<Button
variant="outline"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export default function ManageQuestionnaireOrganizationsSheet({
</div>
</div>

<SheetFooter className="absolute bottom-0 left-0 right-0 p-4 border-t bg-background">
<SheetFooter className="absolute bottom-0 left-0 right-0 p-4 border-t">
<div className="flex w-full justify-end gap-4">
<Button
variant="outline"
Expand Down
6 changes: 3 additions & 3 deletions src/components/Questionnaire/ManageQuestionnaireTagsSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
} from "@/components/ui/command";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area";
import { ScrollArea } from "@/components/ui/scroll-area";
import {
Sheet,
SheetContent,
Expand Down Expand Up @@ -280,8 +280,8 @@ export default function ManageQuestionnaireTagsSheet({
</ScrollArea>
</div>

<SheetFooter className=" bottom-0 left-0 right-0 p-4 border-t bg-background">
<div className="flex w-full justify-end gap-4">
<SheetFooter className=" bottom-0 left-0 right-0 p-4 border-t">
<div className="flex w-full justify-end gap-4 bg-gray-100">
<Button
variant="outline"
onClick={() => {
Expand Down
10 changes: 1 addition & 9 deletions src/components/Questionnaire/QuestionnaireEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ import query from "@/Utils/request/query";
import organizationApi from "@/types/organization/organizationApi";
import {
EnableWhen,
ObservationType,
Question,
QuestionType,
SUPPORTED_QUESTION_TYPES,
Expand Down Expand Up @@ -106,11 +105,6 @@ interface Organization {
description?: string;
}

interface StylingMetadata {
classes?: string;
containerClasses?: string;
}

interface OrganizationResponse {
results: Organization[];
}
Expand Down Expand Up @@ -451,7 +445,6 @@ function QuestionnaireProperties({
id,
organizations,
organizationSelection,
tags,
tagSelection,
}: QuestionnairePropertiesProps) {
return (
Expand Down Expand Up @@ -613,7 +606,6 @@ export default function QuestionnaireEditor({ id }: QuestionnaireEditorProps) {
const [selectedTagIds, setSelectedTagIds] = useState<string[]>([]);
const [orgSearchQuery, setOrgSearchQuery] = useState("");
const [tagSearchQuery, setTagSearchQuery] = useState("");
const [observation, setObservation] = useState<ObservationType | undefined>();

const {
data: initialQuestionnaire,
Expand All @@ -627,7 +619,7 @@ export default function QuestionnaireEditor({ id }: QuestionnaireEditorProps) {
enabled: !!id,
});

const { data: organizations, isLoading: isLoadingOrganizations } = useQuery({
const { data: organizations } = useQuery({
queryKey: ["questionnaire", id, "organizations"],
queryFn: query(questionnaireApi.getOrganizations, {
pathParams: { id: id! },
Expand Down
2 changes: 1 addition & 1 deletion src/components/Resource/ResourceForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ export default function ResourceForm({ facilityId, id }: ResourceProps) {
</div>
</div>

<div className="sticky bottom-0 flex justify-end gap-4 border-t bg-background pt-4">
<div className="sticky bottom-0 flex justify-end gap-4 border-t pt-4">
<Button
type="button"
variant="outline"
Expand Down
6 changes: 3 additions & 3 deletions src/pages/Encounters/tabs/EncounterNotesTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ export const EncounterNotesTab = ({ encounter }: EncounterTabProps) => {
return (
<div className="flex h-[calc(100vh-12rem)]">
{/* Desktop Sidebar */}
<div className="hidden lg:flex lg:w-80 lg:flex-col lg:border-r bg-background">
<div className="hidden lg:flex lg:w-80 lg:flex-col lg:border-r">
<div className="p-4 border-b">
<div className="flex items-center justify-between">
<div className="flex items-center gap-2">
Expand Down Expand Up @@ -575,7 +575,7 @@ export const EncounterNotesTab = ({ encounter }: EncounterTabProps) => {
<div className="flex-1 min-w-0">
<div className="flex flex-col h-full pb-[60px] lg:pb-0">
{/* Header */}
<div className="p-4 border-b bg-background sticky top-0 z-10">
<div className="p-4 border-b sticky top-0 z-10">
{selectedThread ? (
<div className="flex items-center gap-3">
<h2 className="text-base font-medium truncate flex-1">
Expand Down Expand Up @@ -653,7 +653,7 @@ export const EncounterNotesTab = ({ encounter }: EncounterTabProps) => {
</div>
</ScrollArea>
{/* Message Input */}
<div className="border-t bg-background p-4 sticky bottom-0">
<div className="border-t p-4 sticky bottom-0">
<form onSubmit={handleSendMessage}>
<div className="flex gap-2">
<Textarea
Expand Down

0 comments on commit 70a93a2

Please sign in to comment.