Skip to content

Commit

Permalink
implemented feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
AAfghahi committed Sep 8, 2022
1 parent 4b921a5 commit c9a8954
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ import { useSingleViewResource } from 'src/views/CRUD/hooks';
import withToasts from 'src/components/MessageToasts/withToasts';
import { DatasetObject } from '../types';

interface FooterObject {
interface FooterProps {
url: string;
addDangerToast: () => void;
datasetObject?: Partial<DatasetObject> | null;
onDatasetAdd?: (dataset: DatasetObject) => void;
}

function Footer({ url, datasetObject, addDangerToast }: FooterObject) {
function Footer({ url, datasetObject, addDangerToast }: FooterProps) {
const { createResource } = useSingleViewResource<Partial<DatasetObject>>(
'dataset',
t('dataset'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,17 +272,17 @@ export default function LeftPanel({
</Form>
<div className="options-list" data-test="options-list">
{!refresh &&
tableOptions.map((o, i) => (
tableOptions.map((option, i) => (
<div
className={
selectedTable === i ? 'options-highlighted' : 'options'
}
key={i}
role="button"
tabIndex={0}
onClick={() => setTable(o.value, i)}
onClick={() => setTable(option.value, i)}
>
{o.label}
{option.label}
</div>
))}
</div>
Expand Down

0 comments on commit c9a8954

Please sign in to comment.