mirror of https://github.com/buster-so/buster.git
icon props import
This commit is contained in:
parent
f33191080e
commit
9b8e3ee5f4
|
@ -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';
|
||||
|
|
|
@ -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()
|
|
@ -0,0 +1,8 @@
|
|||
export type iconProps = {
|
||||
fill?: string;
|
||||
secondaryfill?: string;
|
||||
strokewidth?: number;
|
||||
width?: string;
|
||||
height?: string;
|
||||
title?: string;
|
||||
};
|
Loading…
Reference in New Issue