Skip to content

Commit 9e1c967

Browse files
committed
fix: clean up ProfileExplorer by avoiding singleton Card UI
1 parent a328e46 commit 9e1c967

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Diff for: plugins/plugin-codeflare/src/components/ProfileExplorer.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export default class ProfileExplorer extends React.PureComponent<Props, State> {
218218
return <Loading />
219219
} else {
220220
return (
221-
<div className="codeflare--profile-explorer flex-fill top-pad left-pad right-pad bottom-pad">
221+
<div className="codeflare--profile-explorer flex-fill">
222222
<ProfileCard
223223
profile={this.state.selectedProfile}
224224
profiles={this.state.profiles}
@@ -548,7 +548,7 @@ class ProfileCard extends React.PureComponent<ProfileCardProps, ProfileCardState
548548

549549
public render() {
550550
return (
551-
<Card className="top-pad left-pad right-pad bottom-pad" isSelectableRaised isSelected>
551+
<Card>
552552
<CardHeader>
553553
<CardTitle>{this.title()}</CardTitle>
554554
<CardActions hasNoOffset>{this.actions()}</CardActions>

Diff for: plugins/plugin-codeflare/src/controller/terminal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ type State = Partial<Pick<BaseProps, "cmdline" | "env">> & {
5555
selectedProfile?: string
5656
}
5757

58-
class TaskTerminal extends React.PureComponent<Props, State> {
58+
export class TaskTerminal extends React.PureComponent<Props, State> {
5959
/** Allotment initial split sizes */
6060
private readonly sizes = [40, 60]
6161

Diff for: plugins/plugin-codeflare/src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@
1515
*/
1616

1717
/* Your exported API */
18+
19+
export { TaskTerminal as WorkloadDesigner } from "./controller/terminal"

0 commit comments

Comments
 (0)