Skip to content

Commit

Permalink
fix: remove unuse code
Browse files Browse the repository at this point in the history
  • Loading branch information
shervinchen committed Apr 24, 2024
1 parent 0c19d4c commit 3d66762
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions packages/Provider/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ const defaultParams: RawUIContextParams = {};
export const RawUIContent: Context<RawUIContextParams> =
createContext<RawUIContextParams>(defaultParams);

export const useRawUIContext = (): RawUIContextParams =>
useContext<RawUIContextParams>(RawUIContent);
// export const useRawUIContext = (): RawUIContextParams =>
// useContext<RawUIContextParams>(RawUIContent);
40 changes: 20 additions & 20 deletions packages/VisuallyHidden/VisuallyHidden.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,26 @@ const VisuallyHiddenInput = forwardRef<
);
});

const VisuallyHidden: FC<HTMLAttributes<HTMLSpanElement>> = (props) => {
return (
<>
<span {...props} />
<style jsx>{`
border: 0;
clip: rect(0, 0, 0, 0);
height: 1px;
width: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
white-space: nowrap;
position: absolute;
`}</style>
</>
);
};
// const VisuallyHidden: FC<HTMLAttributes<HTMLSpanElement>> = (props) => {
// return (
// <>
// <span {...props} />
// <style jsx>{`
// border: 0;
// clip: rect(0, 0, 0, 0);
// height: 1px;
// width: 1px;
// margin: -1px;
// padding: 0;
// overflow: hidden;
// white-space: nowrap;
// position: absolute;
// `}</style>
// </>
// );
// };

VisuallyHiddenInput.displayName = 'RawVisuallyHiddenInput';
VisuallyHidden.displayName = 'RawVisuallyHidden';
// VisuallyHidden.displayName = 'RawVisuallyHidden';

export { VisuallyHiddenInput, VisuallyHidden };
export { VisuallyHiddenInput };
2 changes: 1 addition & 1 deletion packages/VisuallyHidden/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { VisuallyHidden, VisuallyHiddenInput } from './VisuallyHidden';
export { VisuallyHiddenInput } from './VisuallyHidden';

0 comments on commit 3d66762

Please sign in to comment.