-
-
- {formik.touched.key && formik.errors.key && (
-
{formik.errors.key}
- )}
+ ) : (
+
+
+
+
+
+ {formik.touched.domain && formik.errors.domain && (
+
{formik.errors.domain}
+ )}
+
+
+
+
+ {formik.touched.path && formik.errors.path && (
+
{formik.errors.path}
+ )}
+
+
+
+
+ {formik.touched.key && formik.errors.key && (
+
{formik.errors.key}
+ )}
+
+
+
+
+
+ {formik.touched.value && formik.errors.value && (
+
{formik.errors.value}
+ )}
+
-
-
-
- {formik.touched.value && formik.errors.value && (
-
{formik.errors.value}
- )}
+ {/* Date Picker */}
+
-
- {/* Date Picker */}
-
-
-
-
{
- formik.handleChange(e);
- }}
- className="block textbox non-passphrase-input w-full"
- min={moment().format(moment.HTML5_FMT.DATETIME_LOCAL)}
- />
- {formik.touched.expires && formik.errors.expires && (
-
{formik.errors.expires}
- )}
-
-
- {/* Checkboxes */}
-
-
-
-
-
-
-
- )}
-
+ )}
+
+
);
};
diff --git a/packages/bruno-app/src/components/Cookies/StyledWrapper.js b/packages/bruno-app/src/components/Cookies/StyledWrapper.js
index 9d26fa428..eb8805688 100644
--- a/packages/bruno-app/src/components/Cookies/StyledWrapper.js
+++ b/packages/bruno-app/src/components/Cookies/StyledWrapper.js
@@ -70,6 +70,92 @@ const Wrapper = styled.div`
background-size: 100% 30px, 100% 30px, 100% 10px, 100% 10px;
background-attachment: local, local, scroll, scroll;
}
+
+ /* Warning icon */
+ .warning-icon {
+ color: ${(props) => props.theme.colors.text.warning};
+ }
+
+ /* Empty state */
+ .empty-icon {
+ color: ${(props) => props.theme.colors.text.muted};
+ }
+
+ .empty-text {
+ color: ${(props) => props.theme.colors.text.muted};
+ }
+
+ /* Domain count text */
+ .domain-count {
+ color: ${(props) => props.theme.colors.text.muted};
+ }
+
+ /* Action buttons */
+ .action-button {
+ color: ${(props) => props.theme.colors.text.muted};
+ transition: color 0.2s;
+ cursor: pointer;
+
+ &:hover {
+ color: ${(props) => props.theme.text};
+ }
+ }
+
+ .action-button-danger {
+ color: ${(props) => props.theme.text};
+ transition: color 0.2s;
+ cursor: pointer;
+
+ &:hover {
+ color: ${(props) => props.theme.colors.text.danger};
+ }
+ }
+
+ /* Table styles */
+ table {
+ thead {
+ tr {
+ border-bottom: 1px solid ${(props) => props.theme.table.border};
+ color: ${(props) => props.theme.table.thead.color};
+
+ th {
+ color: ${(props) => props.theme.table.thead.color};
+ }
+ }
+ }
+
+ tbody {
+ tr {
+ border-bottom: 1px solid ${(props) => props.theme.table.border};
+
+ &:last-child {
+ border-bottom: none;
+ }
+ }
+ }
+ }
+
+ /* Edit button */
+ .edit-button {
+ color: ${(props) => props.theme.text};
+ transition: color 0.2s;
+ cursor: pointer;
+
+ &:hover {
+ color: ${(props) => props.theme.colors.text.muted};
+ }
+ }
+
+ /* Delete button */
+ .delete-button {
+ color: ${(props) => props.theme.text};
+ transition: color 0.2s;
+ cursor: pointer;
+
+ &:hover {
+ color: ${(props) => props.theme.colors.text.danger};
+ }
+ }
`;
export default Wrapper;
diff --git a/packages/bruno-app/src/components/Cookies/index.js b/packages/bruno-app/src/components/Cookies/index.js
index d2ea41672..4bdae0de1 100644
--- a/packages/bruno-app/src/components/Cookies/index.js
+++ b/packages/bruno-app/src/components/Cookies/index.js
@@ -14,7 +14,7 @@ import Button from 'ui/Button';
const ClearDomainCookiesModal = ({ onClose, domain, onClear }) => (
-
+
Hold on..
@@ -39,7 +39,7 @@ const ClearDomainCookiesModal = ({ onClose, domain, onClear }) => (
const DeleteCookieModal = ({ onClose, cookieName, onDelete }) => (
-
+
Hold on..
@@ -159,9 +159,9 @@ const CollectionProperties = ({ onClose }) => {
{!cookies || !cookies.length ? (
// No cookies found
-
+
No cookies found
-
Add cookies to get started
+
Add cookies to get started