Skip to content

Commit

Permalink
fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shnrndk committed Jan 19, 2024
1 parent 29607f7 commit 426260e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, WSO2 LLC. (http://www.wso2.org) All Rights Reserved.
* Copyright (c) 2024, WSO2 LLC. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
Expand All @@ -20,7 +20,6 @@ import React, { useState } from 'react';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableRow from '@material-ui/core/TableRow';
import ResourceNotFound from 'AppComponents/Base/Errors/ResourceNotFound';
import PropTypes from 'prop-types';
import API from 'AppData/api';
import { makeStyles, withStyles } from '@material-ui/core/styles';
Expand Down Expand Up @@ -113,17 +112,12 @@ const StyledTableRow = withStyles((theme) => ({
}))(TableRow);

const ApisTableContent = ({ apis, updateApiList }) => {
const [notFound] = useState(false);
const restApi = new API();
const [provider, setProvider] = useState('');
const [editableRows, setEditableRows] = useState(new Set());

const classes = useStyles();

if (notFound) {
return <ResourceNotFound />;
}

const handleEditClick = (apiId) => {
setEditableRows((prevRows) => {
const newRows = new Set(prevRows);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, WSO2 LLC. (http://www.wso2.org) All Rights Reserved.
* Copyright (c) 2024, WSO2 LLC. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, WSO2 LLC. (http://www.wso2.org) All Rights Reserved.
* Copyright (c) 2024, WSO2 LLC. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ function getMessage(errorType, isApiName, maxLength) {
case 'any.empty':
return 'should not be empty';
case 'string.regex.base':
if(isApiName){
if (isApiName) {
return 'should not contain trailing or leading spaces, special characters, and consecutive spaces';
}else{
} else {
return 'should not contain spaces or special characters';
}
case 'string.max':
Expand Down

0 comments on commit 426260e

Please sign in to comment.