Kuadrant / kuadrant-console-plugin

Apache License 2.0
2 stars 2 forks source link

Add NamespaceSelect component #49

Closed david-martin closed 1 month ago

david-martin commented 1 month ago

example usage:

import NamespaceSelect from './namespace/NamespaceSelect';

// ...

const MyPage: React.FC = () => {
  const [selectedNamespace, setSelectedNamespace] = React.useState('');

// ...

  return (
    <NamespaceSelect selectedNamespace={selectedNamespace} onChange={setSelectedNamespace} />
  );
};
R-Lawton commented 1 month ago

lgtm works as expected