mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-23 19:05:16 +02:00
refactor: update Slack configuration styling and remove unused icon in general settings
This commit is contained in:
parent
b7a6e3af3d
commit
22f6b9dfe4
3 changed files with 6 additions and 7 deletions
|
|
@ -82,7 +82,9 @@ export const SlackConfig: FC<SlackConfigProps> = ({ connector }) => {
|
||||||
<p>
|
<p>
|
||||||
Before indexing, add the SurfSense bot to each channel you want to index. The bot can
|
Before indexing, add the SurfSense bot to each channel you want to index. The bot can
|
||||||
only access messages from channels it's been added to. Type{" "}
|
only access messages from channels it's been added to. Type{" "}
|
||||||
<code className="bg-muted px-1 py-0.5 rounded text-[9px]">/invite @SurfSense</code>{" "}
|
<code className="rounded bg-popover px-1 py-0.5 text-[9px] text-popover-foreground">
|
||||||
|
/invite @SurfSense
|
||||||
|
</code>{" "}
|
||||||
in any channel to add it.
|
in any channel to add it.
|
||||||
</p>
|
</p>
|
||||||
</AlertDescription>
|
</AlertDescription>
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import { useQuery } from "@tanstack/react-query";
|
import { useQuery } from "@tanstack/react-query";
|
||||||
import { useAtomValue } from "jotai";
|
import { useAtomValue } from "jotai";
|
||||||
import { FolderArchive, Info } from "lucide-react";
|
import { Info } from "lucide-react";
|
||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
import { useCallback, useEffect, useState } from "react";
|
import { useCallback, useEffect, useState } from "react";
|
||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
|
|
@ -197,9 +197,6 @@ export function GeneralSettingsManager({ searchSpaceId }: GeneralSettingsManager
|
||||||
onClick={handleExportKB}
|
onClick={handleExportKB}
|
||||||
className="relative w-fit shrink-0"
|
className="relative w-fit shrink-0"
|
||||||
>
|
>
|
||||||
<span className={isExporting ? "opacity-0" : ""}>
|
|
||||||
<FolderArchive className="h-3 w-3 opacity-60" />
|
|
||||||
</span>
|
|
||||||
<span className={isExporting ? "opacity-0" : ""}>Export</span>
|
<span className={isExporting ? "opacity-0" : ""}>Export</span>
|
||||||
{isExporting && <Spinner size="sm" className="absolute" />}
|
{isExporting && <Spinner size="sm" className="absolute" />}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,9 @@ const alertVariants = cva(
|
||||||
{
|
{
|
||||||
variants: {
|
variants: {
|
||||||
variant: {
|
variant: {
|
||||||
default: "bg-card text-card-foreground",
|
default: "border-popover-border bg-accent text-accent-foreground",
|
||||||
destructive:
|
destructive:
|
||||||
"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current",
|
"border-destructive/30 bg-destructive/10 text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
defaultVariants: {
|
defaultVariants: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue