Skip to content
Snippets Groups Projects
Commit f6ebf847 authored by timothycarambat's avatar timothycarambat
Browse files

refactor: move semantic button to be anchor tag

parent 4f15f95f
No related branches found
No related tags found
No related merge requests found
...@@ -8,14 +8,12 @@ import Admin from "@/models/admin"; ...@@ -8,14 +8,12 @@ import Admin from "@/models/admin";
import * as Skeleton from "react-loading-skeleton"; import * as Skeleton from "react-loading-skeleton";
import "react-loading-skeleton/dist/skeleton.css"; import "react-loading-skeleton/dist/skeleton.css";
import paths from "@/utils/paths"; import paths from "@/utils/paths";
import { useNavigate } from "react-router-dom";
export default function WorkspaceAgentConfiguration({ workspace }) { export default function WorkspaceAgentConfiguration({ workspace }) {
const [settings, setSettings] = useState({}); const [settings, setSettings] = useState({});
const [hasChanges, setHasChanges] = useState(false); const [hasChanges, setHasChanges] = useState(false);
const [saving, setSaving] = useState(false); const [saving, setSaving] = useState(false);
const [loading, setLoading] = useState(true); const [loading, setLoading] = useState(true);
const navigate = useNavigate();
const formEl = useRef(null); const formEl = useRef(null);
useEffect(() => { useEffect(() => {
...@@ -88,12 +86,12 @@ export default function WorkspaceAgentConfiguration({ workspace }) { ...@@ -88,12 +86,12 @@ export default function WorkspaceAgentConfiguration({ workspace }) {
/> />
{!hasChanges && ( {!hasChanges && (
<div className="flex flex-col gap-y-4"> <div className="flex flex-col gap-y-4">
<button <a
className="w-fit transition-all duration-300 border border-slate-200 px-5 py-2.5 rounded-lg text-white text-sm items-center flex gap-x-2 hover:bg-slate-200 hover:text-slate-800 focus:ring-gray-800" className="w-fit transition-all duration-300 border border-slate-200 px-5 py-2.5 rounded-lg text-white text-sm items-center flex gap-x-2 hover:bg-slate-200 hover:text-slate-800 focus:ring-gray-800"
onClick={() => navigate(paths.settings.agentSkills())} href={paths.settings.agentSkills()}
> >
Configure Agent Skills Configure Agent Skills
</button> </a>
<p className="text-white text-opacity-60 text-xs font-medium"> <p className="text-white text-opacity-60 text-xs font-medium">
Customize and enhance the default agent's capabilities by enabling Customize and enhance the default agent's capabilities by enabling
or disabling specific skills. These settings will be applied or disabling specific skills. These settings will be applied
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment