Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export const UpdateAgentPanel: React.FC<Props> = ({ agentId }) => {
<IconButton iconName="close" onClick={handleClose} />
</header>
<div className="flex flex-col gap-y-5 overflow-y-auto px-14 py-8">
{isAgentCreator && <InfoBanner agentName={agent.name} className="flex md:hidden" />}
<AgentForm
fields={fields}
errors={fieldErrors}
Expand All @@ -135,10 +136,8 @@ export const UpdateAgentPanel: React.FC<Props> = ({ agentId }) => {
/>
</div>
{isAgentCreator && (
<div className="flex flex-col gap-y-12 px-14 py-8">
<Banner className="w-full" theme="secondary" size="sm">
Updating {agent.name} will affect everyone using the assistant
</Banner>
<div className="flex flex-col gap-y-12 px-14 py-4 md:pb-8 md:pt-0">
<InfoBanner agentName={agent.name} className="hidden md:flex" />
<Button
className="self-end"
splitIcon="check-mark"
Expand All @@ -151,3 +150,12 @@ export const UpdateAgentPanel: React.FC<Props> = ({ agentId }) => {
</div>
);
};

const InfoBanner: React.FC<{ agentName: string; className?: string }> = ({
agentName,
className,
}) => (
<Banner theme="secondary" size="sm" className={cn('w-full', className)}>
Updating {agentName} will affect everyone using the assistant
</Banner>
);