Skip to content

Commit

Permalink
Prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncid committed Mar 5, 2025
1 parent 9500cb5 commit c8b739d
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions front/components/app/DatasetView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ export default function DatasetView({
"font-mono w-full resize-none border-0 bg-transparent px-1 py-0 text-[13px] font-normal italic placeholder-gray-400 ring-0 focus:ring-0",
readOnly
? "text-gray-500"
: "dark:text-gray-700-night text-gray-700"
: "text-gray-700 dark:text-gray-700-night"
)}
readOnly={readOnly}
placeholder="Property description"
Expand Down Expand Up @@ -762,7 +762,7 @@ export default function DatasetView({
{datasetData.length > 1 ? (
<div className="flex-initial">
<XCircleIcon
className="dark:text-gray-300-night h-4 w-4 cursor-pointer text-gray-300 hover:text-red-500"
className="h-4 w-4 cursor-pointer text-gray-300 hover:text-red-500 dark:text-gray-300-night"
onClick={() => {
handleDeleteEntry(i);
}}
Expand All @@ -771,7 +771,7 @@ export default function DatasetView({
) : null}
<div className="flex-initial">
<PlusCircleIcon
className="dark:text-gray-300-night h-5 w-5 cursor-pointer text-gray-300 hover:text-emerald-500"
className="h-5 w-5 cursor-pointer text-gray-300 hover:text-emerald-500 dark:text-gray-300-night"
onClick={() => {
handleNewEntry(i);
}}
Expand Down
8 changes: 4 additions & 4 deletions front/components/app/NewBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,20 +155,20 @@ export default function NewBlock({
>
<div className="grid max-w-md grid-cols-12 items-center">
<div className="col-span-4 sm:col-span-3">
<div className="dark:text-gray-900-night flex text-base font-medium text-gray-900">
<div className="flex text-base font-medium text-gray-900 dark:text-gray-900-night">
<div
className={cn(
"mr-1 rounded-md px-1 py-0.5 text-sm font-bold",
block.type === "input"
? "dark:bg-orange-200-night bg-orange-200"
: "dark:bg-gray-200-night bg-gray-200"
? "bg-orange-200 dark:bg-orange-200-night"
: "bg-gray-200 dark:bg-gray-200-night"
)}
>
{block.type}
</div>
</div>
</div>
<div className="dark:text-gray-700-night col-span-8 pr-2 text-sm text-gray-700 sm:col-span-9 sm:pl-6">
<div className="col-span-8 pr-2 text-sm text-gray-700 dark:text-gray-700-night sm:col-span-9 sm:pl-6">
<strong>{block.name}</strong>
<br />
<p className="text-sm">{block.description}</p>
Expand Down
4 changes: 2 additions & 2 deletions front/components/app/blocks/Block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export default function Block({
<div
className={classNames(
"flex flex-row items-center text-sm",
"dark:text-gray-400-night text-gray-400"
"text-gray-400 dark:text-gray-400-night"
)}
>
<div className="ml-2 mr-2">
Expand All @@ -185,7 +185,7 @@ export default function Block({
<div
className={classNames(
"flex flex-row items-center text-sm",
"dark:text-gray-400-night text-gray-400"
"text-gray-400 dark:text-gray-400-night"
)}
>
<div role="status">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export function ActionRetrievalExhaustive({
<input
type="text"
className={classNames(
"dark:border-gray-300-night h-8 w-16 rounded-md border-gray-300 text-center text-sm",
"h-8 w-16 rounded-md border-gray-300 text-center text-sm dark:border-gray-300-night",
!timeFrameError
? "focus:border-action-500 focus:ring-action-500"
: "border-red-500 focus:border-red-500 focus:ring-red-500",
Expand Down
2 changes: 1 addition & 1 deletion front/components/workspace/ProviderManagementModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export function ProviderManagementModal({
<SheetTitle>Manage Providers</SheetTitle>
</SheetHeader>
<SheetContainer>
<div className="dark:divide-gray-200-night mt-8 divide-y divide-gray-200">
<div className="mt-8 divide-y divide-gray-200 dark:divide-gray-200-night">
<div className="flex items-center justify-between px-4 pb-4">
<span className="text-left font-bold text-foreground dark:text-foreground-night">
Make all providers available
Expand Down
4 changes: 2 additions & 2 deletions front/pages/w/[wId]/developers/api-keys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export function APIKeys({
onChange={(e) => setNewApiKeyName(e.target.value)}
/>
<div className="align-center flex flex-row items-center gap-2 p-2">
<span className="dark:text-gray-700-night mr-1 flex flex-initial py-2 text-sm font-medium leading-8 text-gray-700">
<span className="mr-1 flex flex-initial py-2 text-sm font-medium leading-8 text-gray-700 dark:text-gray-700-night">
Assign permissions to space:{" "}
</span>
<DropdownMenu>
Expand Down Expand Up @@ -308,7 +308,7 @@ export function APIKeys({
</DialogContent>
</Dialog>
</Page.Horizontal>
<div className="dark:divide-gray-200-night space-y-4 divide-y divide-gray-200">
<div className="space-y-4 divide-y divide-gray-200 dark:divide-gray-200-night">
<ul role="list" className="pt-4">
{keys
.sort((a, b) => (b.status === "active" ? 1 : -1))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export default function ViewDatasetView({
<div className="mt-8 flex flex-col">
<div className="flex flex-1">
<div className="mb-8 w-full">
<div className="dark:divide-gray-200-night space-y-6 divide-y divide-gray-200">
<div className="space-y-6 divide-y divide-gray-200 dark:divide-gray-200-night">
<DatasetView
readOnly={readOnly}
datasets={[] as DatasetType[]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export default function DatasetsView({
>
<div
key={d.name}
className="dark:border-gray-300-night group rounded border border-gray-300 px-4 py-4"
className="group rounded border border-gray-300 px-4 py-4 dark:border-gray-300-night"
>
<div className="flex items-center justify-between">
<p className="truncate text-base font-bold text-action-500">
Expand All @@ -167,7 +167,7 @@ export default function DatasetsView({
{readOnly ? null : (
<div className="ml-2 flex flex-shrink-0">
<TrashIcon
className="dark:text-gray-400-night hidden h-4 w-4 text-gray-400 hover:text-red-600 group-hover:block"
className="hidden h-4 w-4 text-gray-400 hover:text-red-600 group-hover:block dark:text-gray-400-night"
onClick={async (e) => {
e.preventDefault();
await handleDelete(d.name);
Expand All @@ -181,8 +181,8 @@ export default function DatasetsView({
<p
className={classNames(
d.description
? "dark:text-gray-700-night text-gray-700"
: "dark:text-gray-300-night text-gray-300",
? "text-gray-700 dark:text-gray-700-night"
: "text-gray-300 dark:text-gray-300-night",
"text-s flex items-center"
)}
>
Expand All @@ -198,7 +198,7 @@ export default function DatasetsView({
})}
</ul>
<div className="mt-2 max-w-4xl px-2">
<div className="dark:text-gray-400-night py-2 text-sm text-gray-400">
<div className="py-2 text-sm text-gray-400 dark:text-gray-400-night">
Datasets are used as input data to apps (
<Chip label="input" color="slate" /> block) or few-shot
examples to prompt models (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default function NewDatasetView({
</Tabs>
<div className="mt-8 flex flex-col">
<div className="flex flex-1">
<div className="dark:divide-gray-200-night space-y-6 divide-y divide-gray-200">
<div className="space-y-6 divide-y divide-gray-200 dark:divide-gray-200-night">
<DatasetView
readOnly={false}
datasets={datasets}
Expand Down

0 comments on commit c8b739d

Please sign in to comment.