icon props import

This commit is contained in:
Nate Kelley 2025-02-18 10:30:55 -07:00
parent f33191080e
commit 9b8e3ee5f4
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
3 changed files with 34 additions and 8 deletions

View File

@ -1,13 +1,6 @@
import React from 'react';
import { iconProps } from './iconProps';
type iconProps = {
fill?: string,
secondaryfill?: string,
strokewidth?: number,
width?: string,
height?: string,
title?: string
}
function 18px_accessibility(props: iconProps) {
const fill = props.fill || 'currentColor';

View File

@ -0,0 +1,25 @@
import os
def rename_files():
# Get the directory of the current script
directory = os.path.dirname(os.path.abspath(__file__))
# Iterate through all files in the directory
for filename in os.listdir(directory):
if filename.startswith('18px_'):
# Create the new filename by removing '18px_'
new_filename = filename.replace('18px_', '')
# Create full file paths
old_file = os.path.join(directory, filename)
new_file = os.path.join(directory, new_filename)
try:
# Rename the file
os.rename(old_file, new_file)
print(f'Renamed: {filename} -> {new_filename}')
except Exception as e:
print(f'Error renaming {filename}: {str(e)}')
if __name__ == '__main__':
rename_files()

View File

@ -0,0 +1,8 @@
export type iconProps = {
fill?: string;
secondaryfill?: string;
strokewidth?: number;
width?: string;
height?: string;
title?: string;
};