Skip to content

Commit

Permalink
removed tabIndex, updated daisyui
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamics committed Aug 28, 2023
1 parent 68f9e63 commit 9bdc5c7
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 39 deletions.
8 changes: 4 additions & 4 deletions 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"axios": "^1.3.4",
"bcryptjs": "^2.4.3",
"classnames": "^2.3.2",
"daisyui": "^3.2.1",
"daisyui": "^3.6.3",
"ejs": "^3.1.9",
"formidable": "^3.5.0",
"ip-address": "^8.1.0",
Expand Down
2 changes: 0 additions & 2 deletions src/components/modules/debugController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@ const DebugMirror = ({ data, title }: Idata) => {

return (
<div
tabIndex={0}
onClick={() => setIsOpen(!isOpen)}
className="collapse-arrow collapse w-full border border-base-300 bg-base-200"
>
<input type="checkbox" />
<div className="collapse-title">{title}</div>
<div className="collapse-content" style={{ width: "100%" }}>
<CodeMirror
tabIndex={0}
value={JSON.stringify(data, null, 2)}
maxHeight="1500px"
width="100%"
Expand Down
5 changes: 1 addition & 4 deletions src/components/modules/networkFlowRules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ export const NetworkFlowRules = () => {
});

return (
<div
tabIndex={0}
className="collapse-arrow collapse w-full border border-base-300 bg-base-200"
>
<div className="collapse-arrow collapse w-full border border-base-300 bg-base-200">
<input type="checkbox" />
<div className="collapse-title">Flow Rules</div>
<div className="collapse-content" style={{ width: "100%" }}>
Expand Down
5 changes: 1 addition & 4 deletions src/components/modules/networkHelp.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import React from "react";

const NetworkHelpText: React.FC = () => (
<div
tabIndex={0}
className="collapse collapse-arrow w-full border border-base-300 bg-base-200"
>
<div className="collapse collapse-arrow w-full border border-base-300 bg-base-200">
<input type="checkbox" />
<div className="collapse-title">Network Help</div>
<div className="collapse-content" style={{ width: "100%" }}>
Expand Down
5 changes: 1 addition & 4 deletions src/components/modules/networkIpAssignments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ export const NetworkIpAssignment = ({ central = false }: IProp) => {
const [activeTab, setActiveTab] = useState("IPv4");

return (
<div
tabIndex={0}
className="collapse collapse-arrow w-full border border-base-300 bg-base-200"
>
<div className="collapse collapse-arrow w-full border border-base-300 bg-base-200">
<input type="checkbox" />
<div className="collapse-title">{t("networkIpAssignments.header")}</div>
<div className="w-100 collapse-content">
Expand Down
5 changes: 1 addition & 4 deletions src/components/modules/networkMulticast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,7 @@ export const NetworkMulticast = ({ central = false }: IProp) => {

const { network } = networkByIdQuery || {};
return (
<div
tabIndex={0}
className="collapse-arrow collapse w-full border border-base-300 bg-base-200"
>
<div className="collapse-arrow collapse w-full border border-base-300 bg-base-200">
<input type="checkbox" />
<div className="collapse-title">{t("networkMulticast.Multicast")}</div>
<div className="collapse-content" style={{ width: "100%" }}>
Expand Down
5 changes: 1 addition & 4 deletions src/components/modules/ztCentral/centralFlowRules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,7 @@ export const CentralFlowRules = ({ central = true }: IProp) => {
);
}
return (
<div
tabIndex={0}
className="collapse-arrow collapse w-full border border-base-300 bg-base-200"
>
<div className="collapse-arrow collapse w-full border border-base-300 bg-base-200">
<input type="checkbox" />
<div className="collapse-title">Flow Rules</div>
<div className="collapse-content" style={{ width: "100%" }}>
Expand Down
15 changes: 3 additions & 12 deletions src/pages/admin/mail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,30 +143,21 @@ const Mail = () => {
}}
/>
</div>
<div
tabIndex={0}
className="collapse collapse-arrow w-full border border-base-300 bg-base-200"
>
<div className="collapse collapse-arrow w-full border border-base-300 bg-base-200">
<input type="checkbox" />
<div className="collapse-title">{t("mail.inviteUserTemplate")}</div>
<div className="collapse-content" style={{ width: "100%" }}>
<MailUserInviteTemplate />
</div>
</div>
<div
tabIndex={0}
className="collapse-arrow collapse w-full border border-base-300 bg-base-200"
>
<div className="collapse-arrow collapse w-full border border-base-300 bg-base-200">
<input type="checkbox" />
<div className="collapse-title">{t("mail.forgotPasswordTemplate")}</div>
<div className="collapse-content" style={{ width: "100%" }}>
<ForgotPasswordMailTemplate />
</div>
</div>
<div
tabIndex={0}
className="collapse-arrow collapse w-full border border-base-300 bg-base-200"
>
<div className="collapse-arrow collapse w-full border border-base-300 bg-base-200">
<input type="checkbox" />
<div className="collapse-title">{t("mail.notificationTemplate")}</div>
<div className="collapse-content" style={{ width: "100%" }}>
Expand Down

0 comments on commit 9bdc5c7

Please sign in to comment.