Skip to content

Commit

Permalink
idiomatic lint (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelquigley committed Nov 20, 2024
1 parent fe6b861 commit 6f674db
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion agent/agentUi/package-lock.json

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

1 change: 0 additions & 1 deletion agent/agentUi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.14",
"globals": "^15.11.0",
"typescript": "~5.6.2",
"typescript-eslint": "^8.15.0",
"vite": "^5.4.10"
}
Expand Down
4 changes: 2 additions & 2 deletions agent/agentUi/src/AccessCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ interface AccessCardProps {
accessObject: AgentObject;
}

function AccessCard({ accessObject }: AccessCardProps) {
const AccessCard = ({ accessObject }: AccessCardProps) => {
let access = (accessObject.v as AccessDetail);

const releaseAccess = () => {
GetAgentApi().agentReleaseAccess({frontendToken: access.frontendToken})
.catch(e => {
console.log(e);
console.log("error releasing access", e);
});
}

Expand Down
4 changes: 2 additions & 2 deletions agent/agentUi/src/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface NavBarProps {
accessClick: () => void;
}

function NavBar({ version, shareClick, accessClick }: NavBarProps) {
const NavBar = ({ version, shareClick, accessClick }: NavBarProps) => {
return (
<Box ssx={{ flexGrow: 1 }}>
<AppBar position="static">
Expand All @@ -31,7 +31,7 @@ function NavBar({ version, shareClick, accessClick }: NavBarProps) {
</Toolbar>
</AppBar>
</Box>
)
);
}

export default NavBar
2 changes: 1 addition & 1 deletion agent/agentUi/src/NewAccessModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface NewAccessModalProps {
isOpen: boolean;
}

function NewAccessModal({ close, isOpen }: NewAccessModalProps) {
const NewAccessModal = ({ close, isOpen }: NewAccessModalProps) => {
const [errorMessage, setErrorMessage] = useState(<></>);

const newAccessForm = useFormik({
Expand Down
2 changes: 1 addition & 1 deletion agent/agentUi/src/NewShareModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface NewShareModalProps {
isOpen: boolean;
}

function NewShareModal({ close, isOpen }: NewShareModalProps) {
const NewShareModal = ({ close, isOpen }: NewShareModalProps) => {
const [errorMessage, setErrorMessage] = useState(<></>);

const form = useFormik({
Expand Down
2 changes: 1 addition & 1 deletion agent/agentUi/src/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface OverviewProps {
overview: Array<AgentObject>;
}

function Overview({ overview }: OverviewProps) {
const Overview = ({ overview }: OverviewProps) => {
let cards = [];
if(overview.length > 0) {
overview.forEach(row => {
Expand Down
2 changes: 1 addition & 1 deletion agent/agentUi/src/ShareCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface ShareCardProps {
shareObject: AgentObject;
}

function ShareCard({ shareObject }: ShareCardProps) {
const ShareCard = ({ shareObject }: ShareCardProps) => {
let frontends = new Array<React.JSX.Element>();
let share = (shareObject.v as ShareDetail);
share.frontendEndpoint!.map(fe => {
Expand Down
10 changes: 5 additions & 5 deletions agent/agentUi/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import {theme} from "./model/theme.ts";
import AgentUi from "./AgentUi.tsx";

createRoot(document.getElementById('root')!).render(
<StrictMode>
<ThemeProvider theme={theme}>
<AgentUi />
</ThemeProvider>
</StrictMode>
<StrictMode>
<ThemeProvider theme={theme}>
<AgentUi />
</ThemeProvider>
</StrictMode>
)

0 comments on commit 6f674db

Please sign in to comment.