Skip to content

Commit

Permalink
Lint Fixes
Browse files Browse the repository at this point in the history
The way in which errors are presented to the user was refactored and this function is not needed.

Padding token was adjusted in a previous commit and is being removed here.
  • Loading branch information
ryansrofe committed Apr 26, 2024
1 parent cba3eb5 commit 311cf72
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions widget-src/components/log/LinkForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,19 +113,6 @@ export const LinkForm = ({ changeLog, updateChangeState, setUpdatedDate }: LinkF
}
};

const errorMsg = (labelError: boolean, urlError: boolean) => {
switch (true) {
case labelError && urlError:
return "A link label (40 character maximum) and valid url (including 'https://') are required.";
case labelError:
return 'Enter label (1-40 characters).';
case urlError:
return 'Enter URL (https://, no spaces/specials).';
default:
return '';
}
};

return (
<AutoLayout width="fill-parent" horizontalAlignItems="end" verticalAlignItems="start" spacing={GAP.sm}>
<AutoLayout name="Input Wrapper" overflow="visible" direction="vertical" spacing={GAP.xs}>
Expand Down
2 changes: 1 addition & 1 deletion widget-src/components/log/LinkList.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { LinkType } from '../../types/LinkTypes';
import { PADDING, GAP } from '../../utilities/Styles';
import { GAP } from '../../utilities/Styles';
import { Link } from './Link';

const { widget } = figma;
Expand Down

0 comments on commit 311cf72

Please sign in to comment.