improv: clean up
This commit is contained in:
parent
b786591415
commit
55fb41db1a
2 changed files with 2 additions and 10 deletions
|
|
@ -149,10 +149,7 @@ function ContinueInputBox(props: ContinueInputBoxProps) {
|
|||
contextItems={props.contextItems}
|
||||
isCurrentContextPeek={props.isLastUserInput}
|
||||
/>
|
||||
<RulesPeek
|
||||
appliedRules={props.appliedRules}
|
||||
isCurrentRulesPeek={props.isLastUserInput}
|
||||
/>
|
||||
<RulesPeek appliedRules={props.appliedRules} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import ToggleDiv from "../../ToggleDiv";
|
|||
|
||||
interface RulesPeekProps {
|
||||
appliedRules?: RuleWithSource[];
|
||||
isCurrentRulesPeek: boolean;
|
||||
icon?: ComponentType<React.SVGProps<SVGSVGElement>>;
|
||||
}
|
||||
|
||||
|
|
@ -72,11 +71,7 @@ export function RulesPeekItem({ rule }: RulesPeekItemProps) {
|
|||
);
|
||||
}
|
||||
|
||||
export function RulesPeek({
|
||||
appliedRules,
|
||||
isCurrentRulesPeek,
|
||||
icon,
|
||||
}: RulesPeekProps) {
|
||||
export function RulesPeek({ appliedRules, icon }: RulesPeekProps) {
|
||||
const rules = useMemo(() => {
|
||||
return appliedRules ?? [];
|
||||
}, [appliedRules]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue