Skip to content

Commit

Permalink
FIX #616
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinovega committed Nov 16, 2023
1 parent 7acd913 commit 73e1c28
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
14 changes: 7 additions & 7 deletions daikoku/javascript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion daikoku/javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@dnd-kit/sortable": "7.0.1",
"@dnd-kit/utilities": "3.2.1",
"@fortawesome/fontawesome-free": "6.2.1",
"@maif/react-forms": "^1.6.1",
"@maif/react-forms": "^1.6.3",
"@popperjs/core": "^2.11.6",
"@tanstack/react-query": "4.20.2",
"@tanstack/react-table": "^8.7.3",
Expand Down
12 changes: 12 additions & 0 deletions daikoku/javascript/src/components/backoffice/apis/TeamApiInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { type, constraints, format, Schema } from '@maif/react-forms';
import * as Services from '../../../services';
import { I18nContext } from '../../../core';
import { AssetChooserByModal, MimeTypeFilter } from '../../../contexts/modals/AssetsChooserModal';
import { ITeamSimple } from '../../../types';

const Image = ({
value,
Expand Down Expand Up @@ -38,6 +39,17 @@ const Image = ({
);
};

const getTeams = (): Promise<Array<ITeamSimple>> => new Promise((resolve, reject) => {
setTimeout(() => {
const teams = [
{_id: '1', name: 'foo'},
{_id: '2', name: 'bar'},
{_id: '3', name: 'avengers'},
]//@ts-ignore
resolve(teams);
}, 300);
});

const reservedVersionCharacters = [';', '/', '?', ':', '@', '&', '=', '+', '$', ','];
export const teamApiInfoForm = (translate: any, team: any, tenant: any) => {
const schema: Schema = {
Expand Down

0 comments on commit 73e1c28

Please sign in to comment.