Skip to content

Commit

Permalink
Merge branch 'main' into 289Adam289/51966-update-grammar-filters
Browse files Browse the repository at this point in the history
  • Loading branch information
289Adam289 committed Dec 9, 2024
2 parents 7dbb448 + 7180a37 commit 9219b42
Show file tree
Hide file tree
Showing 24 changed files with 854 additions and 1,967 deletions.
444 changes: 354 additions & 90 deletions .github/actions/javascript/authorChecklist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {StorybookConfig} from '@storybook/types';
import type {StorybookConfig} from 'storybook/internal/types';

const main: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
Expand Down
2 changes: 1 addition & 1 deletion .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {PortalProvider} from '@gorhom/portal';
import type {Parameters} from '@storybook/types';
import React from 'react';
import Onyx from 'react-native-onyx';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import type {Parameters} from 'storybook/internal/types';
import ComposeProviders from '@src/components/ComposeProviders';
import HTMLEngineProvider from '@src/components/HTMLEngineProvider';
import {LocaleContextProvider} from '@src/components/LocaleContextProvider';
Expand Down
3 changes: 3 additions & 0 deletions docs/assets/js/selector.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
function syncSelectors(selectedIndex) {
const allSelects = document.querySelectorAll('select');
// eslint-disable-next-line @typescript-eslint/prefer-for-of
for (let i = 0; i < allSelects.length; i++) {
allSelects[i].selectedIndex = selectedIndex;
}
Expand All @@ -19,13 +20,15 @@ function selectOption(select) {
allOptions.forEach((option) => {
if (option.value === selectedValue) {
const toShow = document.getElementsByClassName(option.value);
// eslint-disable-next-line @typescript-eslint/prefer-for-of
for (let i = 0; i < toShow.length; i++) {
toShow[i].classList.remove('hidden');
}
return;
}

const toHide = document.getElementsByClassName(option.value);
// eslint-disable-next-line @typescript-eslint/prefer-for-of
for (let i = 0; i < toHide.length; i++) {
toHide[i].classList.add('hidden');
}
Expand Down
Loading

0 comments on commit 9219b42

Please sign in to comment.