refactor: remove resource config
This commit is contained in:
parent
b8120d9f85
commit
3b3205228f
2 changed files with 4 additions and 52 deletions
|
|
@ -60,8 +60,6 @@ interface SidebarProps {
|
|||
setOauthClientId: (id: string) => void;
|
||||
oauthScope: string;
|
||||
setOauthScope: (scope: string) => void;
|
||||
oauthResource: string;
|
||||
setOauthResource: (resource: string) => void;
|
||||
onConnect: () => void;
|
||||
onDisconnect: () => void;
|
||||
stdErrNotifications: StdErrNotification[];
|
||||
|
|
@ -93,8 +91,6 @@ const Sidebar = ({
|
|||
setOauthClientId,
|
||||
oauthScope,
|
||||
setOauthScope,
|
||||
oauthResource,
|
||||
setOauthResource,
|
||||
onConnect,
|
||||
onDisconnect,
|
||||
stdErrNotifications,
|
||||
|
|
@ -409,14 +405,6 @@ const Sidebar = ({
|
|||
data-testid="oauth-scope-input"
|
||||
className="font-mono"
|
||||
/>
|
||||
<label className="text-sm font-medium">Resource</label>
|
||||
<Input
|
||||
placeholder="Resource"
|
||||
onChange={(e) => setOauthResource(e.target.value)}
|
||||
value={oauthResource}
|
||||
data-testid="oauth-resource-input"
|
||||
className="font-mono"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -46,8 +46,6 @@ describe("Sidebar Environment Variables", () => {
|
|||
setOauthClientId: jest.fn(),
|
||||
oauthScope: "",
|
||||
setOauthScope: jest.fn(),
|
||||
oauthResource: "",
|
||||
setOauthResource: jest.fn(),
|
||||
env: {},
|
||||
setEnv: jest.fn(),
|
||||
bearerToken: "",
|
||||
|
|
|
|||
Loading…
Reference in a new issue