ran prettier

This commit is contained in:
Hagen O'Neill 2024-06-04 13:23:02 -07:00
parent e608febb7f
commit 750c1df0bb
9 changed files with 21 additions and 23 deletions

View File

@ -73,9 +73,9 @@ const MainSection = () => {
return (
<>
<Text>
The Teams connector allows you to index and search through your
Teams channels. Once setup, all messages from the channels contained
in the specified teams will be queryable within Danswer.
The Teams connector allows you to index and search through your Teams
channels. Once setup, all messages from the channels contained in the
specified teams will be queryable within Danswer.
</Text>
<Title className="mb-2 mt-6 ml-auto mr-auto">
@ -165,8 +165,8 @@ const MainSection = () => {
{teamsConnectorIndexingStatuses.length > 0 && (
<>
<Text className="mb-2">
The latest messages from the specified teams are
fetched every 10 minutes.
The latest messages from the specified teams are fetched every 10
minutes.
</Text>
<div className="mb-2">
<ConnectorsTable<TeamsConfig, TeamsCredentialJson>
@ -241,8 +241,8 @@ const MainSection = () => {
) : (
<Text>
Please provide all Azure info in Step 1 first! Once you&apos;re done
with that, you can then specify which teams you want to
make searchable.
with that, you can then specify which teams you want to make
searchable.
</Text>
)}
</>

View File

@ -332,10 +332,10 @@ export function ChatPage({
(persona) => persona.id === existingChatSessionPersonaId
)
: defaultSelectedPersonaId !== undefined
? filteredAssistants.find(
(persona) => persona.id === defaultSelectedPersonaId
)
: undefined
? filteredAssistants.find(
(persona) => persona.id === defaultSelectedPersonaId
)
: undefined
);
const livePersona =
selectedPersona || filteredAssistants[0] || availablePersonas[0];

View File

@ -21,9 +21,7 @@ pre[class*="language-"] {
::-webkit-scrollbar-thumb {
background: #4b5563; /* Dark handle color */
border-radius: 10px;
transition:
background 0.3s ease,
box-shadow 0.3s ease; /* Smooth transition for hover effect */
transition: background 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effect */
}
::-webkit-scrollbar-thumb:hover {

View File

@ -21,7 +21,7 @@ export function useDocumentSelection(): [
DanswerDocument[],
(document: DanswerDocument) => void,
() => void,
number,
number
] {
const [selectedDocuments, setSelectedDocuments] = useState<DanswerDocument[]>(
[]

View File

@ -27,8 +27,8 @@ export function Bubble({
(notSelectable
? " bg-background cursor-default"
: isSelected
? " bg-hover cursor-pointer"
: " bg-background hover:bg-hover-light cursor-pointer")
? " bg-hover cursor-pointer"
: " bg-background hover:bg-hover-light cursor-pointer")
}
onClick={onClick}
>

View File

@ -87,7 +87,7 @@ export function StatusRow<ConnectorConfigType, ConnectorCredentialType>({
export interface ColumnSpecification<
ConnectorConfigType,
ConnectorCredentialType,
ConnectorCredentialType
> {
header: string;
key: string;
@ -101,7 +101,7 @@ export interface ColumnSpecification<
export interface ConnectorsTableProps<
ConnectorConfigType,
ConnectorCredentialType,
ConnectorCredentialType
> {
connectorIndexingStatuses: ConnectorIndexingStatus<
ConnectorConfigType,

View File

@ -46,7 +46,7 @@ const SingleUseConnectorStatus = ({
export function SingleUseConnectorsTable<
ConnectorConfigType,
ConnectorCredentialType,
ConnectorCredentialType
>({
connectorIndexingStatuses,
liveCredential,

View File

@ -18,7 +18,7 @@ export async function fetchAssistantEditorInfoSS(
existingPersona: Persona | null;
tools: ToolSnapshot[];
},
null,
null
]
| [null, string]
> {
@ -50,7 +50,7 @@ export async function fetchAssistantEditorInfoSS(
Response,
User | null,
ToolSnapshot[] | null,
Response | null,
Response | null
];
if (!ccPairsInfoResponse.ok) {

View File

@ -218,7 +218,7 @@ export interface IndexAttemptSnapshot {
export interface ConnectorIndexingStatus<
ConnectorConfigType,
ConnectorCredentialType,
ConnectorCredentialType
> {
cc_pair_id: number;
name: string | null;