Skip to content

Footer#1177

Merged
Katrin-kudryash merged 1 commit intomainfrom
issues/1173
Apr 10, 2025
Merged

Footer#1177
Katrin-kudryash merged 1 commit intomainfrom
issues/1173

Conversation

@Katrin-kudryash
Copy link
Copy Markdown
Contributor

@Katrin-kudryash Katrin-kudryash commented Apr 9, 2025

PR includes

  • Bug Fix

Related issues

Resolve #1174

@Katrin-kudryash
Copy link
Copy Markdown
Contributor Author

Scr.mov


const SheepLogoWithTips: FC = () => {
const [index, setIndex] = useState(getRandomIndex(0));
const [index, setIndex] = useState(getRandomIndex([].length));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? It's the same result

const popupRef = useRef<HTMLDivElement>(null);

const allTipsItems = useMemo(() => {
const allTipsallTipsItems = useMemo(() => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name this memo allTips, remove local variable inside and return array


const SheepLogoWithTips: FC = () => {
const [index, setIndex] = useState(getRandomIndex(0));
const [index, setIndex] = useState(getRandomIndex([].length));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be allTips.length

@Katrin-kudryash Katrin-kudryash merged commit 1872226 into main Apr 10, 2025
2 checks passed
@Katrin-kudryash Katrin-kudryash deleted the issues/1173 branch April 10, 2025 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants