You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there are 105 total instances of <style jsx>
Want to see the progress yourself? Place the following script into a file in your root directory, run it, and enter '.'
importosdefcount_style_jsx_instances(directory):
""" Recursively counts instances of `<style jsx>` in all files within the given directory. Args: directory (str): The root directory to start the search. Returns: int: The total count of `<style jsx>` instances. """style_jsx_count=0forroot, _, filesinos.walk(directory):
forfileinfiles:
file_path=os.path.join(root, file)
try:
withopen(file_path, 'r', encoding='utf-8') asf:
content=f.read()
style_jsx_count+=content.count('<style jsx>')
except (UnicodeDecodeError, FileNotFoundError):
# Skip files that can't be readprint(f"Skipped unreadable file: {file_path}")
returnstyle_jsx_countif__name__=="__main__":
project_directory=input("Enter the path to the project directory: ").strip()
ifnotos.path.isdir(project_directory):
print("Invalid directory. Please provide a valid path.")
else:
total_instances=count_style_jsx_instances(project_directory)
print(f"Total instances of '<style jsx>' found: {total_instances}")
This stuff is hard to maintain and is inconsistent with our current approach to styling (TailwindCSS 👑)
IMO its also hard to maintain. There are some packages required to make it work that could be removed as well (I tried to get rid of them here #2513
tina.io/components/blocks/ActionButton/ActionsButton.tsx
Lines 49 to 70 in 21c4697
The text was updated successfully, but these errors were encountered: